[media] smiapp: Define macros for obtaining properties of register definitions
authorSakari Ailus <sakari.ailus@linux.intel.com>
Thu, 10 Apr 2014 13:08:59 +0000 (10:08 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 23 Apr 2014 14:32:22 +0000 (11:32 -0300)
commitf5d65070d49f707a06bf00c147f02848659a6a0b
tree3d5cc544d99dcc8719c3a89b1eb52c0faa53d0cd
parent6f7481b6685daf693e995e8653f6c8d27cfe5bfc
[media] smiapp: Define macros for obtaining properties of register definitions

The register address, width and flags are encoded as a 32-bit value. Add
macros for obtaining these separately. Use the macros in register access
functions.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/i2c/smiapp/smiapp-regs.c
drivers/media/i2c/smiapp/smiapp-regs.h