فهرست منبع

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>
Javier Martinez Canillas 10 سال پیش
والد
کامیت
4d7078e694
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      drivers/regulator/max77802.c

+ 1 - 1
drivers/regulator/max77802.c

@@ -73,7 +73,7 @@ struct max77802_regulator_prv {
 	unsigned int opmode[MAX77802_REG_MAX];
 	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 ?
 	return mode == MAX77802_OPMODE_NORMAL ?
 		REGULATOR_MODE_NORMAL : REGULATOR_MODE_STANDBY;
 		REGULATOR_MODE_NORMAL : REGULATOR_MODE_STANDBY;