소스 검색

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
 #define	GPIO_MOCKUP_MAX_GC	10
 
 
 enum {
 enum {
-	DIR_IN = 0,
-	DIR_OUT,
+	DIR_OUT = 0,
+	DIR_IN = 1,
 };
 };
 
 
 /*
 /*