Skip to content

Commit 7b9a9ca

Browse files
committed
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>
1 parent 608c803 commit 7b9a9ca

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

drivers/pinctrl/pinctrl-apple-gpio.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ static u32 apple_gpio_get_reg(struct apple_gpio_pinctrl *pctl,
102102
static int apple_gpio_dt_node_to_map(struct pinctrl_dev *pctldev,
103103
struct device_node *node,
104104
struct pinctrl_map **map,
105-
unsigned *num_maps)
105+
unsigned int *num_maps)
106106
{
107-
unsigned reserved_maps;
107+
unsigned int reserved_maps;
108108
struct apple_gpio_pinctrl *pctl;
109109
u32 pinfunc, pin, func;
110110
int num_pins, i, ret;
@@ -170,8 +170,8 @@ static const struct pinctrl_ops apple_gpio_pinctrl_ops = {
170170

171171
/* Pin multiplexer functions */
172172

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)
175175
{
176176
struct apple_gpio_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev);
177177

@@ -202,7 +202,7 @@ static int apple_gpio_get_direction(struct gpio_chip *chip, unsigned int offset)
202202
return GPIO_LINE_DIRECTION_IN;
203203
}
204204

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)
206206
{
207207
struct apple_gpio_pinctrl *pctl = gpiochip_get_data(chip);
208208
unsigned int reg = apple_gpio_get_reg(pctl, offset);

0 commit comments

Comments
 (0)