]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
regulator: max77802: Use unsigned int for modes in max77802_map_mode()
authorJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Mon, 3 Nov 2014 14:40:47 +0000 (15:40 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 3 Nov 2014 16:08:21 +0000 (16:08 +0000)
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>
drivers/regulator/max77802.c

index a0d146278b7692be396d44371d72544ca5f48abe..f8f06ece2f3c99f6667076e9463b900d99271794 100644 (file)
@@ -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;