misc: eeprom_93xx46: Simplify the usage of gpiod API
authorFabio Estevam <fabio.estevam@nxp.com>
Thu, 20 Jul 2017 02:35:28 +0000 (23:35 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 14:55:47 +0000 (16:55 +0200)
commit54ec602370c4c818a9e9d8c4ef2a68ff8126997c
tree413dd1719a744017476386ec7aaa6afa459e16cb
parent75e5bae6ddf74740dd6ee35bc2d33ac9018037f4
misc: eeprom_93xx46: Simplify the usage of gpiod API

Commit 3ca9b1ac28398c ("misc: eeprom_93xx46: Add support for a GPIO
'select' line.") introduced the optional usage of 'select-gpios'
by using the gpiod API in a convoluted way.

Rewrite the gpiod handling to make the code simpler.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/eeprom/eeprom_93xx46.c