staging: mt7621-gpio: use GPIOF_DIR_OUT and GPIOF_DIR_IN macros instead of custom...
commit1e2735fe1b49cfa5dd668f61778aaaa46c6fe1c8
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Fri, 1 Jun 2018 09:30:54 +0000 (1 11:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Jun 2018 11:16:24 +0000 (1 13:16 +0200)
tree2acf618358afd4cde6eefd6b44739588d01817ec
parent64379af8c6345623c985f00b272decd29057a8d5
staging: mt7621-gpio: use GPIOF_DIR_OUT and GPIOF_DIR_IN macros instead of custom values

There are macros in gpio kernel's headers to define direction
of a gpio. Use them instead of return custom '0' and '1' values.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Reviewed-by: NeilBrown <neil@brown.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-gpio/gpio-mt7621.c