linux/drivers/media/i2c
Tomi Valkeinen 906a6c1c45 media: i2c: ds90ub913: Fix a warning about use of uninitialized variable
Fix the following warning:

drivers/media/i2c/ds90ub913.c:488:9: warning: 'v' may be used uninitialized [-Wmaybe-uninitialized]
  488 |         ub913_write(priv, UB913_REG_GENERAL_CFG,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  489 |                     v | UB913_REG_GENERAL_CFG_CRC_ERR_RESET);
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/i2c/ds90ub913.c:477:12: note: 'v' was declared here
  477 |         u8 v, v1, v2;
      |            ^

Fix the warning by initializing the variable to 0. Proper error handling
here would be somewhat pointless, as we are just printing register
values, and the user will see an error about the failed i2c transaction.

Fixes: c158d0d4ff ("media: i2c: add DS90UB913 driver")
Reported-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Closes: https://lore.kernel.org/all/a0180488-f7f5-8538-a8bb-52ae52912835@xs4all.nl/
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2023-07-25 09:24:30 +02:00
..
adv748x media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
ccs media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
cx25840 media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
et8ek8 media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
s5c73m3 media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
ad5820.c media: ad5820: Drop unsupported ad5823 from i2c_ and of_device_id tables 2023-07-14 13:07:18 +02:00
adp1653.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
adv7170.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
adv7175.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
adv7180.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
adv7183_regs.h
adv7183.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
adv7343_regs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_30.RULE (part 2) 2022-06-10 14:51:35 +02:00
adv7343.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
adv7393_regs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_30.RULE (part 2) 2022-06-10 14:51:35 +02:00
adv7393.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
adv7511-v4l2.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
adv7604.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
adv7842.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
ak881x.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
ak7375.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
aptina-pll.c media: i2c: aptina-pll: Remove a useless include 2022-11-25 08:35:48 +00:00
aptina-pll.h
ar0521.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
bt819.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
bt856.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
bt866.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
ccs-pll.c Linux 5.11-rc6 2021-02-01 10:03:45 +01:00
ccs-pll.h media: ccs-pll: Switch from standard integer types to kernel ones 2021-01-12 17:55:28 +01:00
cs53l32a.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
cs3308.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
cs5345.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
ds90ub913.c media: i2c: ds90ub913: Fix a warning about use of uninitialized variable 2023-07-25 09:24:30 +02:00
ds90ub953.c media: ds90ub9xx: switch three more drivers back to use struct i2c_driver::probe() 2023-07-19 12:57:51 +02:00
ds90ub960.c media: ds90ub9xx: switch three more drivers back to use struct i2c_driver::probe() 2023-07-19 12:57:51 +02:00
dw9714.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
dw9768.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
dw9807-vcm.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
hi556.c media: i2c: Remove Shawn's and Chiranjeevi's e-mail addresses 2023-07-14 13:04:34 +02:00
hi846.c media: hi846: fix usage of pm_runtime_get_if_in_use() 2023-05-25 16:21:23 +02:00
hi847.c media: i2c: Remove Shawn's and Chiranjeevi's e-mail addresses 2023-07-14 13:04:34 +02:00
imx208.c media: i2c: Remove Shawn's and Chiranjeevi's e-mail addresses 2023-07-14 13:04:34 +02:00
imx214.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
imx219.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
imx258.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
imx274.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
imx290.c media: Explicitly include correct DT includes 2023-07-19 12:57:51 +02:00
imx296.c media: Explicitly include correct DT includes 2023-07-19 12:57:51 +02:00
imx319.c media: i2c: Remove Shawn's and Chiranjeevi's e-mail addresses 2023-07-14 13:04:34 +02:00
imx334.c media: i2c: imx334: update pixel, hblank and link frequency 2023-05-25 16:21:22 +02:00
imx335.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
imx355.c media: i2c: Remove Shawn's and Chiranjeevi's e-mail addresses 2023-07-14 13:04:34 +02:00
imx412.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
imx415.c media: Explicitly include correct DT includes 2023-07-19 12:57:51 +02:00
ir-kbd-i2c.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
isl7998x.c media: i2c: isl7998x: drop of_match_ptr for ID table 2023-07-14 12:36:56 +02:00
Kconfig media: i2c: add DS90UB953 driver 2023-07-14 13:20:03 +02:00
ks0127.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
ks0127.h
lm3560.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
lm3646.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
m52790.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
Makefile media: i2c: add DS90UB953 driver 2023-07-14 13:20:03 +02:00
max2175.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
max2175.h
max9271.c media: i2c: max9271: Introduce wake_up() function 2021-06-17 11:30:21 +02:00
max9271.h media: i2c: max9271: Introduce wake_up() function 2021-06-17 11:30:21 +02:00
max9286.c media: i2c: max9286: drop of_match_ptr for ID table 2023-07-14 12:37:01 +02:00
ml86v7667.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
msp3400-driver.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
msp3400-driver.h
msp3400-kthreads.c media: msp3400: use semicolons rather than commas to separate statements 2020-11-16 10:31:07 +01:00
mt9m001.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
mt9m111.c media: i2c: mt9m111: drop of_match_ptr for ID table 2023-07-14 12:36:57 +02:00
mt9p031.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
mt9t112.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
mt9v011.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
mt9v032.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
mt9v111.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
og01a1b.c media: i2c: Remove Shawn's and Chiranjeevi's e-mail addresses 2023-07-14 13:04:34 +02:00
ov01a10.c media: i2c: ov01a10: Switch back to use struct i2c_driver::probe 2023-07-19 12:57:51 +02:00
ov02a10.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
ov08d10.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
ov08x40.c media: ov08x40: Fix hblank out of range issue 2023-07-14 13:05:05 +02:00
ov13b10.c media: ov13b10: add PM control support based on power resources 2023-07-14 13:07:49 +02:00
ov772x.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
ov2640.c media: i2c: ov2640: drop of_match_ptr for ID table 2023-07-14 12:36:58 +02:00
ov2659.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
ov2680.c media: Explicitly include correct DT includes 2023-07-19 12:57:51 +02:00
ov2685.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
ov2740.c media: i2c: Remove Shawn's and Chiranjeevi's e-mail addresses 2023-07-14 13:04:34 +02:00
ov4689.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
ov5640.c media: Explicitly include correct DT includes 2023-07-19 12:57:51 +02:00
ov5645.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
ov5647.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
ov5648.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
ov5670.c media: i2c: Remove Shawn's and Chiranjeevi's e-mail addresses 2023-07-14 13:04:34 +02:00
ov5675.c media: i2c: Remove Shawn's and Chiranjeevi's e-mail addresses 2023-07-14 13:04:34 +02:00
ov5693.c media: ov5693: Simplify an error message 2023-05-25 16:21:22 +02:00
ov5695.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
ov6650.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
ov7251.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
ov7640.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
ov7670.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
ov7740.c media: i2c: ov7740: drop of_match_ptr for ID table 2023-07-14 12:37:00 +02:00
ov8856.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
ov8858.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
ov8865.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
ov9282.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
ov9640.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
ov9640.h media: ov9640: Use the generic clock framework 2021-02-06 09:38:05 +01:00
ov9650.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
ov9734.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
ov13858.c media: i2c: Remove Shawn's and Chiranjeevi's e-mail addresses 2023-07-14 13:04:34 +02:00
rdacm20.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
rdacm21.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
rj54n1cb0c.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
s5k5baf.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
s5k6a3.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
saa711x_regs.h
saa717x.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
saa6588.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
saa6752hs.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
saa7110.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
saa7115.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
saa7127.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
saa7185.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
sony-btf-mpx.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
st-mipid02.c media: st-mipid02: Propagate format from sink to source pad 2023-05-25 16:21:23 +02:00
st-vgxy61.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
tc358743_regs.h
tc358743.c media: tc358743: Add error code to error message 2023-07-19 12:57:47 +02:00
tc358746.c media: tc358746: Address compiler warnings 2023-07-14 09:14:09 +02:00
tda1997x_regs.h media: TDA1997x: replace video detection routine 2021-10-19 08:08:38 +01:00
tda1997x.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
tda7432.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
tda9840.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
tea6415c.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
tea6415c.h
tea6420.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
tea6420.h
ths7303.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
ths8200_regs.h
ths8200.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
tlv320aic23b.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
tvaudio.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
tvp514x_regs.h media: media/i2c: fix kerneldoc issues for media i2c headers 2021-03-22 10:23:43 +01:00
tvp514x.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
tvp5150_reg.h
tvp5150.c media: i2c: tvp5150: check return value of devm_kasprintf() 2023-07-14 13:08:14 +02:00
tvp7002_reg.h
tvp7002.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
tw2804.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
tw9903.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
tw9906.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
tw9910.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
uda1342.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
upd64031a.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
upd64083.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
video-i2c.c media: Explicitly include correct DT includes 2023-07-19 12:57:51 +02:00
vp27smpx.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
vpx3220.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
wm8739.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
wm8775.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00