]> git.baikalelectronics.ru Git - kernel.git/commit
misc: microchip: pci1xxxx: Add functions to configure gpio pins as input / output...
authorKumaravel Thiagarajan <kumaravel.thiagarajan@microchip.com>
Wed, 24 Aug 2022 20:00:45 +0000 (01:30 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Sep 2022 12:49:08 +0000 (14:49 +0200)
commit5716c8740d603222a683a69263cd2a5ad0919c1e
tree6af80f5ebecd2d7f977640d4a1124f71eff26984
parentc007c56bd0e44cae94627c6b21e24ca11443b2da
misc: microchip: pci1xxxx: Add functions to configure gpio pins as input / output, get status, handle I/O for gpio pins.

direction_input and direction_output functions configures a gpio pin as
input and output respectively. get_direction function returns if a gpio
pin is output or input. get function returns the value of a gpio pin
whereas set function assigns output value for a gpio pin.

Signed-off-by: Kumaravel Thiagarajan <kumaravel.thiagarajan@microchip.com>
Link: https://lore.kernel.org/r/20220824200047.150308-4-kumaravel.thiagarajan@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gpio.c