gpio: sunxi: Implement .set_flags
authorSamuel Holland <samuel@sholland.org>
Thu, 21 Oct 2021 04:52:56 +0000 (23:52 -0500)
committerAndre Przywara <andre.przywara@arm.com>
Sun, 30 Jan 2022 01:25:00 +0000 (01:25 +0000)
commit35ae126c16a6a9149edc6638faaa247f67b8a400
treea95ce5a1520ef9617c2db1de179b2e71d314c440
parentefdd656659e54049f5a9e31f3ff7c3f42e0e454c
gpio: sunxi: Implement .set_flags

This, along with gpio_flags_xlate(), allows the GPIO driver to handle
pull-up/down flags provided by consumer drivers or in the device tree.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
drivers/gpio/sunxi_gpio.c