projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcce88d
)
gpio: wcove: Allow return negative error code from to_reg()
author
Andy Shevchenko
<
[email protected]
>
Tue, 29 Jan 2019 18:37:28 +0000
(20:37 +0200)
committer
Andy Shevchenko
<
[email protected]
>
Fri, 8 Feb 2019 13:55:38 +0000
(15:55 +0200)
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 <
[email protected]
>
drivers/gpio/gpio-wcove.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-wcove.c
b/drivers/gpio/gpio-wcove.c
index dde7c6aecbb5e564e4975b9044abab785145013c..4afc8580ecd7a23b3c08f522055b2c1ebccbe2ee 100644
(file)
--- 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;