Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio: viperboard: Replace 'unsigned' with 'unsigned int'

Fixes a couple of warnings by checkpatch and sparse.

Signed-off-by: Hennie Muller <hm@bitlabs.co.za>
Link: https://lore.kernel.org/r/20190721125259.13990-1-hm@bitlabs.co.za
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Hennie Muller and committed by
Linus Walleij
d111e7a3 7bdbd1ec

+10 -10
+10 -10
drivers/gpio/gpio-viperboard.c
··· 79 79 /* ----- begin of gipo a chip -------------------------------------------- */ 80 80 81 81 static int vprbrd_gpioa_get(struct gpio_chip *chip, 82 - unsigned offset) 82 + unsigned int offset) 83 83 { 84 84 int ret, answer, error = 0; 85 85 struct vprbrd_gpio *gpio = gpiochip_get_data(chip); ··· 129 129 } 130 130 131 131 static void vprbrd_gpioa_set(struct gpio_chip *chip, 132 - unsigned offset, int value) 132 + unsigned int offset, int value) 133 133 { 134 134 int ret; 135 135 struct vprbrd_gpio *gpio = gpiochip_get_data(chip); ··· 170 170 } 171 171 172 172 static int vprbrd_gpioa_direction_input(struct gpio_chip *chip, 173 - unsigned offset) 173 + unsigned int offset) 174 174 { 175 175 int ret; 176 176 struct vprbrd_gpio *gpio = gpiochip_get_data(chip); ··· 207 207 } 208 208 209 209 static int vprbrd_gpioa_direction_output(struct gpio_chip *chip, 210 - unsigned offset, int value) 210 + unsigned int offset, int value) 211 211 { 212 212 int ret; 213 213 struct vprbrd_gpio *gpio = gpiochip_get_data(chip); ··· 251 251 252 252 /* ----- begin of gipo b chip -------------------------------------------- */ 253 253 254 - static int vprbrd_gpiob_setdir(struct vprbrd *vb, unsigned offset, 255 - unsigned dir) 254 + static int vprbrd_gpiob_setdir(struct vprbrd *vb, unsigned int offset, 255 + unsigned int dir) 256 256 { 257 257 struct vprbrd_gpiob_msg *gbmsg = (struct vprbrd_gpiob_msg *)vb->buf; 258 258 int ret; ··· 273 273 } 274 274 275 275 static int vprbrd_gpiob_get(struct gpio_chip *chip, 276 - unsigned offset) 276 + unsigned int offset) 277 277 { 278 278 int ret; 279 279 u16 val; ··· 305 305 } 306 306 307 307 static void vprbrd_gpiob_set(struct gpio_chip *chip, 308 - unsigned offset, int value) 308 + unsigned int offset, int value) 309 309 { 310 310 int ret; 311 311 struct vprbrd_gpio *gpio = gpiochip_get_data(chip); ··· 338 338 } 339 339 340 340 static int vprbrd_gpiob_direction_input(struct gpio_chip *chip, 341 - unsigned offset) 341 + unsigned int offset) 342 342 { 343 343 int ret; 344 344 struct vprbrd_gpio *gpio = gpiochip_get_data(chip); ··· 359 359 } 360 360 361 361 static int vprbrd_gpiob_direction_output(struct gpio_chip *chip, 362 - unsigned offset, int value) 362 + unsigned int offset, int value) 363 363 { 364 364 int ret; 365 365 struct vprbrd_gpio *gpio = gpiochip_get_data(chip);