]> git.baikalelectronics.ru Git - kernel.git/commit
[media] em28xx: add helper function for reading data blocks from i2c clients
authorFrank Schaefer <fschaefer.oss@googlemail.com>
Sun, 3 Mar 2013 18:37:41 +0000 (15:37 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 4 Mar 2013 19:21:34 +0000 (16:21 -0300)
commit4db6040c4b1a45b7f7c38d3d6fc9c7b66afbcc97
tree4bc34cf5f153cf34be27c26002263662a3ee3fce
parent07564dd8539a5328ccabd4e6126d92db48806f01
[media] em28xx: add helper function for reading data blocks from i2c clients

Add a helper function for reading data blocks from i2c devices with 8 or 16 bit
address width and 8 bit register width.
This allows us to reduce the size of new code added by the following patches.
Works only for devices with activated register auto incrementation.

Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/em28xx/em28xx-i2c.c