gpio: adp5588 – use "unsigned" for the setup and teardown callbacks [Linux 3.15]

This Linux kernel change "gpio: adp5588 – use “unsigned” for the setup and teardown callbacks" is included in the Linux 3.15 release. This change is authored by Jean-Francois Dagenais <jeff.dagenais [at] gmail.com> on Mon Feb 10 12:24:04 2014 -0500. The commit for this change in Linux stable tree is dc1b5ba (patch).

gpio: adp5588 - use "unsigned" for the setup and teardown callbacks

to comply with the rest of the GPIO drivers.

Signed-off-by: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

There are 4 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 include/linux/i2c/adp5588.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/i2c/adp5588.h b/include/linux/i2c/adp5588.h
index d8341cb..c215304 100644
--- a/include/linux/i2c/adp5588.h
+++ b/include/linux/i2c/adp5588.h
@@ -161,10 +161,10 @@ struct adp5588_gpio_platform_data {
    unsigned irq_base;  /* interrupt base # */
    unsigned pullup_dis_mask; /* Pull-Up Disable Mask */
    int (*setup)(struct i2c_client *client,
-               int gpio, unsigned ngpio,
+               unsigned gpio, unsigned ngpio,
                void *context);
    int (*teardown)(struct i2c_client *client,
-               int gpio, unsigned ngpio,
+               unsigned gpio, unsigned ngpio,
                void *context);
    void    *context;
 };

Leave a Reply

Your email address will not be published. Required fields are marked *