linux/drivers/media/i2c
Mauro Carvalho Chehab 4c7ba4082f [media] saa717x: fix multi-byte read code
As reported by smatch:
	drivers/media/i2c/saa717x.c:155 saa717x_read() warn: mask and shift to zero
	drivers/media/i2c/saa717x.c:155 saa717x_read() warn: mask and shift to zero

This is done right at saa717x_write(), but the read function is
broken. Thankfully, there's just one place at saa717x driver that
uses multibyte read (for status report, via printk).

Yet, let's fix it. From saa717x_write(), it is clear that the
bytes are in little endian:
		mm1[4] = (value >> 16) & 0xff;
		mm1[3] = (value >> 8) & 0xff;
		mm1[2] = value & 0xff;

So, the same order should be valid for read too.

Compile-tested only.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2015-04-30 13:35:13 -03:00
..
cx25840 [media] cx25840: better document the media pads 2015-02-26 08:45:58 -03:00
m5mols [media] v4l2-subdev: replace v4l2_subdev_fh by v4l2_subdev_pad_config 2015-03-23 11:41:36 -07:00
s5c73m3 [media] s5c73m3/s5k5baf/s5k6aa: fix compiler warnings 2015-04-28 09:24:51 -03:00
smiapp [media] smiapp: Use v4l2_of_alloc_parse_endpoint() 2015-04-27 16:05:55 -03:00
soc_camera [media] ov2640: add missing consumer.h include 2015-04-08 06:29:15 -03:00
ad9389b.c [media] adv: use V4L2_DV_FL_IS_CE_VIDEO instead of V4L2_DV_BT_STD_CEA861 2015-04-08 06:38:31 -03:00
adp1653.c [media] media: i2c/adp1653: Devicetree support for adp1653 2015-04-27 16:19:23 -03:00
adv7170.c [media] i2c: Make use of media_bus_format enum 2014-11-14 17:52:48 -02:00
adv7175.c [media] i2c: Make use of media_bus_format enum 2014-11-14 17:52:48 -02:00
adv7180.c [media] v4l2-subdev: replace v4l2_subdev_fh by v4l2_subdev_pad_config 2015-03-23 11:41:36 -07:00
adv7183_regs.h [media] media_tree: Fix spelling errors 2013-12-09 14:50:50 -02:00
adv7183.c [media] i2c: Make use of media_bus_format enum 2014-11-14 17:52:48 -02:00
adv7343_regs.h [media] drivers: media: i2c: adv7343_regs.h: Fix typo in #ifndef 2014-09-21 20:12:13 -03:00
adv7343.c [media] media: drop call to v4l2_device_unregister_subdev() 2015-03-03 11:21:41 -03:00
adv7393_regs.h
adv7393.c [media] media/i2c: remove g_chip_ident op 2013-06-17 08:52:10 -03:00
adv7511.c [media] adv: use V4L2_DV_FL_IS_CE_VIDEO instead of V4L2_DV_BT_STD_CEA861 2015-04-08 06:38:31 -03:00
adv7604.c [media] adv: use V4L2_DV_FL_IS_CE_VIDEO instead of V4L2_DV_BT_STD_CEA861 2015-04-08 06:38:31 -03:00
adv7842.c [media] adv: use V4L2_DV_FL_IS_CE_VIDEO instead of V4L2_DV_BT_STD_CEA861 2015-04-08 06:38:31 -03:00
ak881x.c [media] i2c: Make use of media_bus_format enum 2014-11-14 17:52:48 -02:00
aptina-pll.c
aptina-pll.h
as3645a.c
bt819.c [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
bt856.c [media] media/i2c: remove g_chip_ident op 2013-06-17 08:52:10 -03:00
bt866.c [media] media/i2c: remove g_chip_ident op 2013-06-17 08:52:10 -03:00
cs53l32a.c [media] media/i2c: remove g_chip_ident op 2013-06-17 08:52:10 -03:00
cs5345.c [media] media/i2c: remove g_chip_ident op 2013-06-17 08:52:10 -03:00
ir-kbd-i2c.c [media] i2c: Deletion of an unnecessary check before the function call "rc_unregister_device" 2014-11-25 13:30:35 -02:00
Kconfig [media] media: i2c: add support for omnivision's ov2659 sensor 2015-04-02 22:15:46 -03:00
ks0127.c [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
ks0127.h
lm3560.c [media] lm3560: simplify boolean tests 2014-09-03 17:59:24 -03:00
lm3646.c [media] lm3646: add new dual LED Flash driver 2014-03-11 10:00:26 -03:00
m52790.c [media] media/i2c: remove g_chip_ident op 2013-06-17 08:52:10 -03:00
Makefile [media] media: i2c: add support for omnivision's ov2659 sensor 2015-04-02 22:15:46 -03:00
ml86v7667.c [media] i2c: Make use of media_bus_format enum 2014-11-14 17:52:48 -02:00
msp3400-driver.c [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
msp3400-driver.h
msp3400-kthreads.c
mt9m032.c [media] v4l2-subdev: replace v4l2_subdev_fh by v4l2_subdev_pad_config 2015-03-23 11:41:36 -07:00
mt9p031.c [media] v4l: mt9p031: Convert to the gpiod API 2015-04-02 21:29:56 -03:00
mt9t001.c [media] v4l2-subdev: replace v4l2_subdev_fh by v4l2_subdev_pad_config 2015-03-23 11:41:36 -07:00
mt9v011.c [media] i2c: Make use of media_bus_format enum 2014-11-14 17:52:48 -02:00
mt9v032.c [media] v4l: mt9v032: Add OF support 2015-04-02 21:31:31 -03:00
noon010pc30.c [media] v4l2-subdev: replace v4l2_subdev_fh by v4l2_subdev_pad_config 2015-03-23 11:41:36 -07:00
ov2659.c [media] media: i2c: add support for omnivision's ov2659 sensor 2015-04-02 22:15:46 -03:00
ov7640.c [media] media/i2c: remove g_chip_ident op 2013-06-17 08:52:10 -03:00
ov7670.c [media] v4l2-subdev: add support for the new enum_frame_interval 'which' field 2015-03-23 12:01:15 -07:00
ov9650.c [media] v4l2-subdev: replace v4l2_subdev_fh by v4l2_subdev_pad_config 2015-03-23 11:41:36 -07:00
s5k4ecgx.c [media] v4l2-subdev: replace v4l2_subdev_fh by v4l2_subdev_pad_config 2015-03-23 11:41:36 -07:00
s5k5baf.c [media] s5c73m3/s5k5baf/s5k6aa: fix compiler warnings 2015-04-28 09:24:51 -03:00
s5k6a3.c [media] v4l2-subdev: replace v4l2_subdev_fh by v4l2_subdev_pad_config 2015-03-23 11:41:36 -07:00
s5k6aa.c [media] s5c73m3/s5k5baf/s5k6aa: fix compiler warnings 2015-04-28 09:24:51 -03:00
saa711x_regs.h [media] saa7115: Implement i2c_board_info.platform_data 2013-08-18 08:27:07 -03:00
saa717x.c [media] saa717x: fix multi-byte read code 2015-04-30 13:35:13 -03:00
saa6588.c [media] saa6588: add support for non-blocking mode 2014-01-07 07:42:19 -02:00
saa6752hs.c [media] i2c: Make use of media_bus_format enum 2014-11-14 17:52:48 -02:00
saa7110.c [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
saa7115.c [media] i2c: Make use of media_bus_format enum 2014-11-14 17:52:48 -02:00
saa7127.c [media] media/i2c: remove g_chip_ident op 2013-06-17 08:52:10 -03:00
saa7185.c [media] media/i2c: remove g_chip_ident op 2013-06-17 08:52:10 -03:00
smiapp-pll.c [media] smiapp-pll: include linux/device.h in smiapp-pll.c, not in smiapp-pll.h 2014-12-23 11:29:01 -02:00
smiapp-pll.h [media] smiapp-pll: include linux/device.h in smiapp-pll.c, not in smiapp-pll.h 2014-12-23 11:29:01 -02:00
sony-btf-mpx.c [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
sr030pc30.c [media] i2c: Make use of media_bus_format enum 2014-11-14 17:52:48 -02:00
tda7432.c [media] tda7432: Fix setting TDA7432_MUTE bit for TDA7432_RF register 2014-08-21 15:25:36 -05:00
tda9840.c [media] media/i2c: remove g_chip_ident op 2013-06-17 08:52:10 -03:00
tea6415c.c [media] media/i2c: remove g_chip_ident op 2013-06-17 08:52:10 -03:00
tea6415c.h
tea6420.c [media] media/i2c: remove g_chip_ident op 2013-06-17 08:52:10 -03:00
tea6420.h
ths7303.c [media] media: i2c: ths7303: drop module param debug 2015-03-03 11:21:57 -03:00
ths8200_regs.h [media] media: i2c: ths8200: driver for TI video encoder 2013-06-17 09:52:31 -03:00
ths8200.c [media] media: drop call to v4l2_device_unregister_subdev() 2015-03-03 11:21:41 -03:00
tlv320aic23b.c
tvaudio.c [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
tvp514x_regs.h
tvp514x.c [media] v4l2-subdev: replace v4l2_subdev_fh by v4l2_subdev_pad_config 2015-03-23 11:41:36 -07:00
tvp5150_reg.h
tvp5150.c [media] i2c: Make use of media_bus_format enum 2014-11-14 17:52:48 -02:00
tvp7002_reg.h
tvp7002.c [media] v4l2-subdev: replace v4l2_subdev_fh by v4l2_subdev_pad_config 2015-03-23 11:41:36 -07:00
tw2804.c [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
tw9903.c [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
tw9906.c [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
uda1342.c
upd64031a.c [media] media/i2c: remove g_chip_ident op 2013-06-17 08:52:10 -03:00
upd64083.c [media] media/i2c: remove g_chip_ident op 2013-06-17 08:52:10 -03:00
vp27smpx.c [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
vpx3220.c [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
vs6624_regs.h
vs6624.c [media] i2c: Make use of media_bus_format enum 2014-11-14 17:52:48 -02:00
wm8739.c [media] media/i2c: remove g_chip_ident op 2013-06-17 08:52:10 -03:00
wm8775.c [media] wm8775: fix broken audio routing 2013-11-29 14:34:54 -02:00