OSDN Git Service

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)
commit282db906eecccb08b8f0adccd082a129ae1d95d8
treedaee34823e049b3938b52c1d5e5a3658066fc39a
parentfcce88d9ca1ae202801b75554c951a2393473afc
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