提交 282db906 编写于 作者: A Andy Shevchenko

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: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
上级 fcce88d9
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册