camera: generic_sensor v0.1.9

This commit is contained in:
ddl
2013-06-28 11:16:15 +08:00
parent 9ca853a25d
commit d4615ab308
2 changed files with 5 additions and 3 deletions

View File

@@ -22,9 +22,11 @@
* add support flash control;
*
*v0.1.5/v0.1.7:
* fix use v4l2_mbus_framefmt.reserved array overflow in generic_sensor_s_fmt;
* fix use v4l2_mbus_framefmt.reserved array overflow in generic_sensor_s_fmt;
*v0.1.9:
* fix sensor_find_ctrl may be overflow;
*/
static int version = KERNEL_VERSION(0,1,7);
static int version = KERNEL_VERSION(0,1,9);
module_param(version, int, S_IRUGO);

View File

@@ -421,7 +421,7 @@ static inline struct sensor_v4l2ctrl_info_s* sensor_find_ctrl(
{
int i;
for (i = 0; i < ops[i].num_ctrls; i++)
for (i = 0; i < ops[0].num_ctrls; i++)
if (ops[i].qctrl->id == id)
return &ops[i];