diff options
author | Bartosz Golaszewski <brgl@bgdev.pl> | 2017-05-25 04:33:39 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2017-05-29 07:28:09 -0400 |
commit | c650c00c102b2bcafb3b1f3f45e5b1e9e6f72e56 (patch) | |
tree | 19ac1b8cc4aed7b1b8224d8340899b3ba6c05a49 /drivers/gpio/gpio-mockup.c | |
parent | c9546cf141798a648c3053067a42936c36d626a3 (diff) |
gpio: mockup: add prefixes to the direction enum
All internal symbols except for the direction enum follow the same
convention and use the gpio_mockup prefix. Add the prefix to the
DIR_IN and DIR_OUT definitions as well for consistency across the
file.
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-mockup.c')
-rw-r--r-- | drivers/gpio/gpio-mockup.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpio/gpio-mockup.c b/drivers/gpio/gpio-mockup.c index c18d011770c8..b1ee45cd4302 100644 --- a/drivers/gpio/gpio-mockup.c +++ b/drivers/gpio/gpio-mockup.c | |||
@@ -29,8 +29,8 @@ | |||
29 | #define GPIO_MOCKUP_MAX_GC 10 | 29 | #define GPIO_MOCKUP_MAX_GC 10 |
30 | 30 | ||
31 | enum { | 31 | enum { |
32 | DIR_OUT = 0, | 32 | GPIO_MOCKUP_DIR_OUT = 0, |
33 | DIR_IN = 1, | 33 | GPIO_MOCKUP_DIR_IN = 1, |
34 | }; | 34 | }; |
35 | 35 | ||
36 | /* | 36 | /* |
@@ -93,7 +93,7 @@ static int gpio_mockup_dirout(struct gpio_chip *gc, unsigned int offset, | |||
93 | struct gpio_mockup_chip *chip = gpiochip_get_data(gc); | 93 | struct gpio_mockup_chip *chip = gpiochip_get_data(gc); |
94 | 94 | ||
95 | gpio_mockup_set(gc, offset, value); | 95 | gpio_mockup_set(gc, offset, value); |
96 | chip->lines[offset].dir = DIR_OUT; | 96 | chip->lines[offset].dir = GPIO_MOCKUP_DIR_OUT; |
97 | 97 | ||
98 | return 0; | 98 | return 0; |
99 | } | 99 | } |
@@ -102,7 +102,7 @@ static int gpio_mockup_dirin(struct gpio_chip *gc, unsigned int offset) | |||
102 | { | 102 | { |
103 | struct gpio_mockup_chip *chip = gpiochip_get_data(gc); | 103 | struct gpio_mockup_chip *chip = gpiochip_get_data(gc); |
104 | 104 | ||
105 | chip->lines[offset].dir = DIR_IN; | 105 | chip->lines[offset].dir = GPIO_MOCKUP_DIR_IN; |
106 | 106 | ||
107 | return 0; | 107 | return 0; |
108 | } | 108 | } |