diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2019-01-29 21:37:28 +0300 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2019-02-08 16:55:38 +0300 |
commit | 282db906eecccb08b8f0adccd082a129ae1d95d8 (patch) | |
tree | daee34823e049b3938b52c1d5e5a3658066fc39a /drivers/gpio/gpio-wcove.c | |
parent | fcce88d9ca1ae202801b75554c951a2393473afc (diff) | |
download | linux-282db906eecccb08b8f0adccd082a129ae1d95d8.tar.xz |
gpio: wcove: Allow return negative error code from to_reg()
The type of to_reg() is unsigned int while it might return
a negative error code. Callers are also expecting a signed type.
For sake of type consistency replace unsigned int with plain int.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/gpio/gpio-wcove.c')
-rw-r--r-- | drivers/gpio/gpio-wcove.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-wcove.c b/drivers/gpio/gpio-wcove.c index dde7c6aecbb5..4afc8580ecd7 100644 --- a/drivers/gpio/gpio-wcove.c +++ b/drivers/gpio/gpio-wcove.c @@ -105,7 +105,7 @@ struct wcove_gpio { bool set_irq_mask; }; -static inline unsigned int to_reg(int gpio, enum ctrl_register reg_type) +static inline int to_reg(int gpio, enum ctrl_register reg_type) { unsigned int reg; |