diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2017-10-29 00:49:14 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2017-10-29 00:50:44 +0200 |
commit | 4cf419a2b4c2e5bb0583e32e5fe079995c987c0f (patch) | |
tree | 7f3f257a46365590f56ba8a20923fbde87b9f822 /drivers/power | |
parent | 5e9bee5267fe626df39ca04d6c30e135a9e8b157 (diff) | |
download | linux-4cf419a2b4c2e5bb0583e32e5fe079995c987c0f.tar.gz linux-4cf419a2b4c2e5bb0583e32e5fe079995c987c0f.tar.bz2 linux-4cf419a2b4c2e5bb0583e32e5fe079995c987c0f.zip |
power: supply: sbs-message: fix some code style issues
Use 'unsigned int' and curly braces for 'else'.
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/supply/sbs-manager.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/power/supply/sbs-manager.c b/drivers/power/supply/sbs-manager.c index 3e3ad09c5f11..ccb4217b9638 100644 --- a/drivers/power/supply/sbs-manager.c +++ b/drivers/power/supply/sbs-manager.c @@ -193,7 +193,7 @@ static int sbsm_select(struct i2c_mux_core *muxc, u32 chan) return ret; } -static int sbsm_gpio_get_value(struct gpio_chip *gc, unsigned off) +static int sbsm_gpio_get_value(struct gpio_chip *gc, unsigned int off) { struct sbsm_data *data = gpiochip_get_data(gc); int ret; @@ -209,7 +209,7 @@ static int sbsm_gpio_get_value(struct gpio_chip *gc, unsigned off) * This needs to be defined or the GPIO lib fails to register the pin. * But the 'gpio' is always an input. */ -static int sbsm_gpio_direction_input(struct gpio_chip *gc, unsigned off) +static int sbsm_gpio_direction_input(struct gpio_chip *gc, unsigned int off) { return 0; } @@ -229,8 +229,9 @@ static int sbsm_do_alert(struct device *dev, void *d) driver->alert(client, I2C_PROTOCOL_SMBUS_ALERT, 0); else dev_warn(&client->dev, "no driver alert()!\n"); - } else + } else { dev_dbg(&client->dev, "alert with no driver\n"); + } device_unlock(dev); return -EBUSY; |