[media] m5mols: add m5mols_read_u8/u16/u32() according to I2C byte width
authorHeungJun, Kim <riverful.kim@samsung.com>
Tue, 31 May 2011 06:44:19 +0000 (03:44 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 11 Jun 2011 12:45:51 +0000 (09:45 -0300)
commit57644f56234a154afffd0f4d53becf8ff4a55b41
treec4c24ed2e950cc53ad8a915c0a188593e83415a8
parentbbe66edc607425acc47d7ad69ba7ad7193ec05b4
[media] m5mols: add m5mols_read_u8/u16/u32() according to I2C byte width

For now, the m5mols_read() share in case of I2C packet 1, 2, 4 byte(s) width.
So, this commit adds 3 functions - m5mols_read_u8/u16/u32() according to byte
width of I2C packet. And, the u32 variables in spite of u8 or u16 for fitting
to m5mols_read() having no choice, is replaced to have original byte width
like u8, u16, u32 as same reason.

Signed-off-by: HeungJun, Kim <riverful.kim@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/m5mols/m5mols.h
drivers/media/video/m5mols/m5mols_capture.c
drivers/media/video/m5mols/m5mols_controls.c
drivers/media/video/m5mols/m5mols_core.c