linux/drivers/media
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
..
common
dvb-core Merge branch 'drm-next-merged' of git://people.freedesktop.org/~airlied/linux into v4l_for_linus 2015-04-21 09:44:55 -03:00
dvb-frontends [media] dib8000: fix compiler warning 2015-04-28 09:30:33 -03:00
firewire
i2c [media] saa717x: fix multi-byte read code 2015-04-30 13:35:13 -03:00
mmc
pci [media] saa7164: Check if dev is NULL before dereferencing it 2015-04-30 13:34:08 -03:00
platform [media] am437x: remove unused variable 2015-04-30 13:11:46 -03:00
radio [media] media: radio-si4713: improve usage of gpiod API 2015-04-08 06:40:33 -03:00
rc [media] rc: fix bad indenting 2015-04-30 13:13:36 -03:00
tuners Merge branch 'drm-next-merged' of git://people.freedesktop.org/~airlied/linux into v4l_for_linus 2015-04-21 09:44:55 -03:00
usb Merge branch 'patchwork' into v4l_for_linus 2015-04-21 06:12:35 -03:00
v4l2-core [media] v4l: of: Parse variable length properties --- link-frequencies 2015-04-27 16:04:28 -03:00
Kconfig
Makefile
media-device.c
media-devnode.c
media-entity.c