[PATCH] staging/vme: explicitly use `unsigned int` instead of `unsigned`
Luis de Bethencourt
luisbg at osg.samsung.com
Wed May 25 22:08:40 UTC 2016
On 20/05/16 17:27, Daniel Lockyer wrote:
> Kernel code style is to prefer the former so add `int` to the method
> parameters.
>
> Signed-off-by: Daniel Lockyer <thisisdaniellockyer at gmail.com>
> ---
> drivers/staging/vme/devices/vme_pio2_gpio.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/staging/vme/devices/vme_pio2_gpio.c b/drivers/staging/vme/devices/vme_pio2_gpio.c
> index 6d361201..765cb2d 100644
> --- a/drivers/staging/vme/devices/vme_pio2_gpio.c
> +++ b/drivers/staging/vme/devices/vme_pio2_gpio.c
> @@ -92,7 +92,7 @@ static void pio2_gpio_set(struct gpio_chip *chip,
> }
>
> /* Directionality configured at board build - send appropriate response */
> -static int pio2_gpio_dir_in(struct gpio_chip *chip, unsigned offset)
> +static int pio2_gpio_dir_in(struct gpio_chip *chip, unsigned int offset)
> {
> int data;
> struct pio2_card *card = gpiochip_get_data(chip);
> @@ -111,7 +111,7 @@ static int pio2_gpio_dir_in(struct gpio_chip *chip, unsigned offset)
> }
>
> /* Directionality configured at board build - send appropriate response */
> -static int pio2_gpio_dir_out(struct gpio_chip *chip, unsigned offset, int value)
> +static int pio2_gpio_dir_out(struct gpio_chip *chip, unsigned int offset, int value)
> {
> int data;
> struct pio2_card *card = gpiochip_get_data(chip);
>
Unfortunately this doesn't apply cleanly on the staging-testing branch [0]
AFAIK Greg pushes new staging patches onto this branch.
Please fix so it does apply cleanly, the patch idea looks good.
Thanks :)
Luis
[0] https://git.kernel.org/cgit/linux/kernel/git/gregkh/staging.git/log/?h=staging-testing
More information about the devel
mailing list