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

Commit 948e0ed8 authored by Linus Walleij's avatar Linus Walleij
Browse files

MIPS: alchemy: switch to gpiochip_add_data()



We're planning to remove the gpiochip_add() function to swith
to gpiochip_add_data() with NULL for data argument.

Cc: linux-mips@linux-mips.org
Acked-by: default avatarRalf Baechle <ralf@linux-mips.org>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent ebdbcba0
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -160,14 +160,14 @@ static int __init alchemy_gpiochip_init(void)

	switch (alchemy_get_cputype()) {
	case ALCHEMY_CPU_AU1000:
		ret = gpiochip_add(&alchemy_gpio_chip[0]);
		ret = gpiochip_add_data(&alchemy_gpio_chip[0], NULL);
		break;
	case ALCHEMY_CPU_AU1500...ALCHEMY_CPU_AU1200:
		ret = gpiochip_add(&alchemy_gpio_chip[0]);
		ret |= gpiochip_add(&alchemy_gpio_chip[1]);
		ret = gpiochip_add_data(&alchemy_gpio_chip[0], NULL);
		ret |= gpiochip_add_data(&alchemy_gpio_chip[1], NULL);
		break;
	case ALCHEMY_CPU_AU1300:
		ret = gpiochip_add(&au1300_gpiochip);
		ret = gpiochip_add_data(&au1300_gpiochip, NULL);
		break;
	}
	return ret;