Skip to content

Commit 8657af6

Browse files
author
Bartosz Golaszewski
committed
pinctrl: da9062: replace gpiochip_get_desc() with gpio_device_get_desc()
In order to finally confine the unsafe gpiochip_get_desc() to drivers/gpio/, let's convert this driver to using the safer alternative that takes the gpio_device as argument. Acked-by: Linus Walleij <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 7e92061 commit 8657af6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pinctrl/pinctrl-da9062.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ static int da9062_gpio_direction_input(struct gpio_chip *gc,
139139
{
140140
struct da9062_pctl *pctl = gpiochip_get_data(gc);
141141
struct regmap *regmap = pctl->da9062->regmap;
142-
struct gpio_desc *desc = gpiochip_get_desc(gc, offset);
142+
struct gpio_desc *desc = gpio_device_get_desc(gc->gpiodev, offset);
143143
unsigned int gpi_type;
144144
int ret;
145145

0 commit comments

Comments
 (0)