mfd: palmas: Add APIs to access the Palmas' registers
authorLaxman Dewangan <ldewangan@nvidia.com>
Thu, 3 Jan 2013 10:46:58 +0000 (16:16 +0530)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 13 Feb 2013 23:22:44 +0000 (00:22 +0100)
commit60c185f059c88ad4b9b170b1f9322e3adcccca07
tree413128ca84526604a04527605e6ed2b9f8a8f192
parenta36516b016f52f0f6e5284025e3487f63b4be33b
mfd: palmas: Add APIs to access the Palmas' registers

Palmas register set is divided into different blocks (base and offset)
and hence different i2c addresses. The i2c address offsets are derived
from base address of block of registers.

Add inline APIs to access the Palma's registers which takes the base of
register block and register offset. The i2c address offset is  derived
from the base address of register blocks.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
include/linux/mfd/palmas.h