regulator: Remove MAX8997_REG_BUCK1DVS/MAX8997_REG_BUCK2DVS/MAX8997_REG_BUCK5DVS...
authorAxel Lin <[email protected]>
Mon, 16 May 2011 10:20:34 +0000 (18:20 +0800)
committerLiam Girdwood <[email protected]>
Fri, 27 May 2011 09:49:10 +0000 (10:49 +0100)
commitecb9c4f5956afa2ca0a20a1f99932b9ff81de854
tree185fd3b201008a711a99d7b0712e96e6639bed18
parent0514e9acd7655c708fbf12a659ea43d835bc688a
regulator: Remove MAX8997_REG_BUCK1DVS/MAX8997_REG_BUCK2DVS/MAX8997_REG_BUCK5DVS macros

In current implementation, the original macro implementation assumes the caller
pass the parameter starting from 1 (to match the register names in datasheet).
Thus we have unneeded plus one then minus one operations
when using MAX8997_REG_BUCK1DVS/MAX8997_REG_BUCK2DVS/MAX8997_REG_BUCK5DVS macros.

This patch removes these macros to avoid unneeded plus one then minus one operations
without reducing readability.

Signed-off-by: Axel Lin <[email protected]>
Acked-by: Kyungmin Park <[email protected]>
Acked-by: MyungJoo Ham <[email protected]>
Acked-by: Mark Brown <[email protected]>
Signed-off-by: Liam Girdwood <[email protected]>
drivers/regulator/max8997.c
include/linux/mfd/max8997-private.h