Skip to content

Commit 3992404

Browse files
MingcongBaiopsiff
authored andcommitted
pinctrl: zhaoxin: fix build on >= 6.7
pinctrl_gpio_direction_{in,out}put() was revised post-6.6 to include a second parameter, with the first being the chip and second being the offset as received by the pinctrl I/O. Signed-off-by: Mingcong Bai <baimingcong@uniontech.com>
1 parent 9d5e194 commit 3992404

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/pinctrl/zhaoxin/pinctrl-zhaoxin.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,12 +272,12 @@ static void zhaoxin_gpio_set(struct gpio_chip *chip, unsigned int offset, int va
272272

273273
static int zhaoxin_gpio_direction_input(struct gpio_chip *chip, unsigned int offset)
274274
{
275-
return pinctrl_gpio_direction_input(chip->base + offset);
275+
return pinctrl_gpio_direction_input(chip, offset);
276276
}
277277

278278
static int zhaoxin_gpio_direction_output(struct gpio_chip *chip, unsigned int offset, int value)
279279
{
280-
return pinctrl_gpio_direction_output(chip->base + offset);
280+
return pinctrl_gpio_direction_output(chip, offset);
281281
}
282282

283283
static int zhaoxin_gpio_request(struct gpio_chip *gc, unsigned int offset)

0 commit comments

Comments
 (0)