Skip to contentSkip to conversation

gpio: iop: Use generic GPIO MMIO functions for driver

PATCH In review Alexander Shiyan 2 participants 2 messages Sep 9, 2016 – Sep 12, 2016 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpio: iop: Use generic GPIO MMIO functions for driver

This patch switches the driver to use the generic GPIO MMIO functions that removes a bit of redundant and duplicate code.
---
Compile tested only.

---
 drivers/gpio/Kconfig    |   3 +-
 drivers/gpio/gpio-iop.c | 115 +++++++++---------------------------------------
 2 files changed, 24 insertions(+), 94 deletions(-)
drivers/gpio/Kconfig +2 -1
index 66a9410..60944f4 100644
@@ -237,7 +237,8 @@ config GPIO_ICH
 
 config GPIO_IOP
 	tristate "Intel IOP GPIO"
-	depends on ARM && (ARCH_IOP32X || ARCH_IOP33X)
+	depends on ARCH_IOP32X || ARCH_IOP33X || COMPILE_TEST
+	select GPIO_GENERIC
 	help
 	  Say yes here to support the GPIO functionality of a number of Intel
 	  IOP32X or IOP33X.
drivers/gpio/gpio-iop.c +22 -93

133 lines not on this page · raw message

Signature · 1 line
2.7.3
#1 lore raw
Quoted 6 lines · Alexander Shiyan

This patch switches the driver to use the generic GPIO MMIO functions that removes a bit of redundant and duplicate code.
---
Compile tested only.

I don't know if people using IOP exist for real.

If this doesn't work for them, I hope they turn up and greet us with a fix.

Patch applied.

Yours,
Linus Walleij