From: Javier Martinez Canillas Date: Mon, 3 Nov 2014 14:40:47 +0000 (+0100) Subject: regulator: max77802: Use unsigned int for modes in max77802_map_mode() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4d7078e69417852283937872e210adcc633be66f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Mark Brown --- 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 { unsigned int opmode[MAX77802_REG_MAX]; }; -static inline int max77802_map_mode(int mode) +static inline unsigned int max77802_map_mode(unsigned int mode) { return mode == MAX77802_OPMODE_NORMAL ? REGULATOR_MODE_NORMAL : REGULATOR_MODE_STANDBY;