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)
commit9b91a368a4de0559c8fde4e69cdab797cb3d9876
tree6af80f5ebecd2d7f977640d4a1124f71eff26984
parent7d3e4d807df2a216b9aa2944372f2b3f6ef3f205
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