[media] m5mols: Simplify the I2C registers definition
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Fri, 25 Nov 2011 23:37:23 +0000 (20:37 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 30 Dec 2011 16:16:24 +0000 (14:16 -0200)
commit69eb18032017082bb1c54236290c7e3578e0a3d3
treea00a0eb7dd41bbde299fa4ff89bb0fa9da615fb9
parentdafb9c70abb7896a43288fbec2a9f2ed6e915d18
[media] m5mols: Simplify the I2C registers definition

The redundant definitions of the m5mols I2C register addresses within
the pages (categories) are removed. In place of symbolic definitions
plain numbers are used which simplifies the code and eases identifying
the registers in the documentation.

Also make the m5mols_busy() function accept I2C_REG() value as a register
address, like all other functions, rather than using the category and
command values.

Acked-by: HeungJun Kim <riverful.kim@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@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_core.c
drivers/media/video/m5mols/m5mols_reg.h