gpio: tegra: use named constants
authorStephen Warren <swarren@nvidia.com>
Fri, 25 Sep 2015 16:44:08 +0000 (10:44 -0600)
committerTom Warren <twarren@nvidia.com>
Fri, 2 Oct 2015 18:05:56 +0000 (11:05 -0700)
commitfe82857c4b1667fff8108eab77340ae76016215a
treea23c7e0cbb019abcf8614ed0192d54f4fac1613e
parent9f75a222c7ff8f475e74252c71c3e83e4aef62c5
gpio: tegra: use named constants

In order to make it clear what the parameters to set_config() and
set_direction() mean, and similarly for the return values from the
respective get_*(), define named constants for these values.

Disassembly shows no diff in the generated code, except that the
order of the code in the branches of tegra_gpio_get_function() gets
modified without affecting behaviour.

Suggested-by: Tom Warren <twarren@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
drivers/gpio/tegra_gpio.c