From: Laxman Dewangan Date: Thu, 3 Jan 2013 10:46:58 +0000 (+0530) Subject: mfd: palmas: Add APIs to access the Palmas' registers X-Git-Tag: v3.9-rc1~92^2~63 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60c185f059c88ad4b9b170b1f9322e3adcccca07;p=pandora-kernel.git 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 Signed-off-by: Samuel Ortiz --- Reading git-diff-tree failed