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

Configure Feed

Select the types of activity you want to include in your feed.

pinctrl: apple: Use unsigned int instead of unsigned

It is discouraged to use the ambiguous "unsigned" type, use
explicit unsigned int in the driver.

Reviewed-by: Sven Peter <sven@kernel.org>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>

+5 -5
+5 -5
drivers/pinctrl/pinctrl-apple-gpio.c
··· 102 102 static int apple_gpio_dt_node_to_map(struct pinctrl_dev *pctldev, 103 103 struct device_node *node, 104 104 struct pinctrl_map **map, 105 - unsigned *num_maps) 105 + unsigned int *num_maps) 106 106 { 107 - unsigned reserved_maps; 107 + unsigned int reserved_maps; 108 108 struct apple_gpio_pinctrl *pctl; 109 109 u32 pinfunc, pin, func; 110 110 int num_pins, i, ret; ··· 170 170 171 171 /* Pin multiplexer functions */ 172 172 173 - static int apple_gpio_pinmux_set(struct pinctrl_dev *pctldev, unsigned func, 174 - unsigned group) 173 + static int apple_gpio_pinmux_set(struct pinctrl_dev *pctldev, unsigned int func, 174 + unsigned int group) 175 175 { 176 176 struct apple_gpio_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); 177 177 ··· 202 202 return GPIO_LINE_DIRECTION_IN; 203 203 } 204 204 205 - static int apple_gpio_get(struct gpio_chip *chip, unsigned offset) 205 + static int apple_gpio_get(struct gpio_chip *chip, unsigned int offset) 206 206 { 207 207 struct apple_gpio_pinctrl *pctl = gpiochip_get_data(chip); 208 208 unsigned int reg = apple_gpio_get_reg(pctl, offset);