mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-23 12:14:10 +08:00
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 <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20240618111824.15593-1-brgl@bgdev.pl Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
This commit is contained in:
parent
7e92061f1e
commit
8657af6c0a
@ -139,7 +139,7 @@ static int da9062_gpio_direction_input(struct gpio_chip *gc,
|
||||
{
|
||||
struct da9062_pctl *pctl = gpiochip_get_data(gc);
|
||||
struct regmap *regmap = pctl->da9062->regmap;
|
||||
struct gpio_desc *desc = gpiochip_get_desc(gc, offset);
|
||||
struct gpio_desc *desc = gpio_device_get_desc(gc->gpiodev, offset);
|
||||
unsigned int gpi_type;
|
||||
int ret;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user