Message ID | 4B63400E.3000502@freemail.hu (mailing list archive) |
---|---|
State | Rejected |
Headers | show |
diff -r 95d3956ea3e5 linux/drivers/media/video/gspca/zc3xx.c --- a/linux/drivers/media/video/gspca/zc3xx.c Fri Jan 29 15:05:25 2010 +0100 +++ b/linux/drivers/media/video/gspca/zc3xx.c Fri Jan 29 21:01:52 2010 +0100 @@ -7213,14 +7213,17 @@ u8 *data, /* interrupt packet data */ int len) /* interrput packet length */ { + int ret = -EINVAL; + if (len == 8 && data[4] == 1) { input_report_key(gspca_dev->input_dev, KEY_CAMERA, 1); input_sync(gspca_dev->input_dev); input_report_key(gspca_dev->input_dev, KEY_CAMERA, 0); input_sync(gspca_dev->input_dev); + ret = 0; } - return 0; + return ret; } #endif