]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: wcove: Allow return negative error code from to_reg()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 29 Jan 2019 18:37:28 +0000 (20:37 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 8 Feb 2019 13:55:38 +0000 (15:55 +0200)
commitb21854e5b4fedba3dad2b5a52671e0b3d294056b
treedaee34823e049b3938b52c1d5e5a3658066fc39a
parentdb2c29833a5555dde11e814db045b3a1e6b0bd3b
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>
drivers/gpio/gpio-wcove.c