]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitac57e3b82aa538a063745138c5f6db8f4c6c0174
treea00a0eb7dd41bbde299fa4ff89bb0fa9da615fb9
parent85177a99028c683df5c30af77a5d9b06d74b6536
[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