mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-27 22:28:25 -04:00
media: i2c: ov2685: Add print for power on write failed
If the sensor doens't power up correctly, for example due to incorrect devicetree description, the power up i2c writes will fail. Add an error print for this situation. Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Signed-off-by: Luca Weiss <luca@z3ntu.xyz> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
ef586f262c
commit
74b506cb4f
@@ -419,8 +419,10 @@ static int __ov2685_power_on(struct ov2685 *ov2685)
|
||||
* writing register before .s_stream() as a workaround
|
||||
*/
|
||||
ret = ov2685_write_array(ov2685->client, ov2685->cur_mode->reg_list);
|
||||
if (ret)
|
||||
if (ret) {
|
||||
dev_err(dev, "Failed to set regs for power on\n");
|
||||
goto disable_supplies;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user