OSDN Git Service

gpio: mockup: change the type of value field in line state struct
authorBartosz Golaszewski <brgl@bgdev.pl>
Mon, 27 Nov 2017 10:48:46 +0000 (11:48 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 2 Dec 2017 21:42:27 +0000 (22:42 +0100)
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>
drivers/gpio/gpio-mockup.c

index 9a880e1..8a61328 100644 (file)
@@ -48,7 +48,7 @@ enum {
  */
 struct gpio_mockup_line_status {
        int dir;
-       bool value;
+       int value;
 };
 
 struct gpio_mockup_chip {