Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8ce8e9c0 authored by Rohit Kumar's avatar Rohit Kumar Committed by Gerrit - the friendly Code Review server
Browse files

pinctrl: lpi: Use gpiochip_get_data to get gpio state



Use gpiochip_get_data to get gpio state instead of to_gpio_state
to fix compilation error.

Change-Id: I130fda1f6377eca0ec68d2941f90c1426729f14e
Signed-off-by: default avatarRohit Kumar <rohitkr@codeaurora.org>
parent 8a51ffab
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -448,6 +448,7 @@ static void lpi_gpio_dbg_show_one(struct seq_file *s,
				  unsigned int offset,
				  unsigned int gpio)
{
	struct lpi_gpio_state *state = gpiochip_get_data(chip);
	struct pinctrl_pin_desc pindesc;
	struct lpi_gpio_pad *pad;
	unsigned int func;
@@ -463,7 +464,7 @@ static void lpi_gpio_dbg_show_one(struct seq_file *s,
		"pull up"
	};

	pctldev = pctldev ? : to_gpio_state(chip)->ctrl;
	pctldev = pctldev ? : state->ctrl;
	pindesc = pctldev->desc->pins[offset];
	pad = pctldev->desc->pins[offset].drv_data;
	ctl_reg = lpi_gpio_read(pad, LPI_GPIO_REG_DIR_CTL);