aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/max77802.c
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier.martinez@collabora.co.uk>2014-11-03 09:40:47 -0500
committerMark Brown <broonie@kernel.org>2014-11-03 11:08:21 -0500
commit4d7078e69417852283937872e210adcc633be66f (patch)
treee87717c9dd74e09773c822940c9e29381203a38d /drivers/regulator/max77802.c
parenta1dd913f4e045927b1e758beadfdc6a180222d96 (diff)
regulator: max77802: Use unsigned int for modes in max77802_map_mode()
All function dealing with operating modes use unsigned int for modes so change max77802_map_mode() function signature for consistency. Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/max77802.c')
-rw-r--r--drivers/regulator/max77802.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/max77802.c b/drivers/regulator/max77802.c
index a0d146278b76..f8f06ece2f3c 100644
--- a/drivers/regulator/max77802.c
+++ b/drivers/regulator/max77802.c
@@ -73,7 +73,7 @@ struct max77802_regulator_prv {
73 unsigned int opmode[MAX77802_REG_MAX]; 73 unsigned int opmode[MAX77802_REG_MAX];
74}; 74};
75 75
76static inline int max77802_map_mode(int mode) 76static inline unsigned int max77802_map_mode(unsigned int mode)
77{ 77{
78 return mode == MAX77802_OPMODE_NORMAL ? 78 return mode == MAX77802_OPMODE_NORMAL ?
79 REGULATOR_MODE_NORMAL : REGULATOR_MODE_STANDBY; 79 REGULATOR_MODE_NORMAL : REGULATOR_MODE_STANDBY;