summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-mockup.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <brgl@bgdev.pl>2017-11-27 11:48:46 +0100
committerLinus Walleij <linus.walleij@linaro.org>2017-12-02 22:42:27 +0100
commit5b7908c024ae6e3f21af077d4841d20f9a9567b9 (patch)
treeed0833e7a82c9825f38c03b64b3aa324d4d58282 /drivers/gpio/gpio-mockup.c
parentca8792af40afb1e83e6910eac1bc48a91694fba3 (diff)
gpio: mockup: change the type of value field in line state struct
GPIO values are universally represented as integers. Change the type of the variable storing the current line value to int for consistency. 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-mockup.c b/drivers/gpio/gpio-mockup.c
index 9a880e15ea0b..8a61328a255d 100644
--- a/drivers/gpio/gpio-mockup.c
+++ b/drivers/gpio/gpio-mockup.c
@@ -48,7 +48,7 @@ enum {
*/
struct gpio_mockup_line_status {
int dir;
- bool value;
+ int value;
};
struct gpio_mockup_chip {