]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb731aa95ea4e1e83c19ff77718c61f7a2801c7e1
tree413dd1719a744017476386ec7aaa6afa459e16cb
parent206c79f12e7a4e6bbdb3f1f5ef8d378b73a6537d
misc: eeprom_93xx46: Simplify the usage of gpiod API

Commit fde67ef7c79ea0 ("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