Преглед изворни кода

gpio: mockup: fix direction values

The comment in linux/gpio/driver.h says:

 @get_direction: returns direction for signal "offset", 0=out, 1=in

We got those switched at some point. Fix the values.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Bartosz Golaszewski пре 8 година
родитељ
комит
c9546cf141
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      drivers/gpio/gpio-mockup.c

+ 2 - 2
drivers/gpio/gpio-mockup.c

@@ -29,8 +29,8 @@
 #define	GPIO_MOCKUP_MAX_GC	10
 
 enum {
-	DIR_IN = 0,
-	DIR_OUT,
+	DIR_OUT = 0,
+	DIR_IN = 1,
 };
 
 /*