mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-06 11:54:14 -04:00
media: i2c: mt9v111: fix incorrect type for ret
commit bacd713145443dce7764bb2967d30832a95e5ec8 upstream.
Change "ret" from unsigned int to int type in mt9v111_calc_frame_rate()
to store negative error codes or zero returned by __mt9v111_hw_reset()
and other functions.
Storing the negative error codes in unsigned type, doesn't cause an issue
at runtime but it's ugly as pants.
No effect on runtime.
Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
Fixes: aab7ed1c39 ("media: i2c: Add driver for Aptina MT9V111")
Cc: stable@vger.kernel.org
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f08cbec8ce
commit
9dc4dc99f9
1 changed files with 1 additions and 1 deletions
|
|
@ -534,8 +534,8 @@ static int mt9v111_calc_frame_rate(struct mt9v111_dev *mt9v111,
|
|||
static int mt9v111_hw_config(struct mt9v111_dev *mt9v111)
|
||||
{
|
||||
struct i2c_client *c = mt9v111->client;
|
||||
unsigned int ret;
|
||||
u16 outfmtctrl2;
|
||||
int ret;
|
||||
|
||||
/* Force device reset. */
|
||||
ret = __mt9v111_hw_reset(mt9v111);
|
||||
|
|
|
|||
Loading…
Reference in a new issue