diff options
Diffstat (limited to 'Documentation/gpio.txt')
-rw-r--r-- | Documentation/gpio.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Documentation/gpio.txt b/Documentation/gpio.txt index 77a1d11af723..6f83fa965b4b 100644 --- a/Documentation/gpio.txt +++ b/Documentation/gpio.txt | |||
@@ -72,11 +72,11 @@ in this document, but drivers acting as clients to the GPIO interface must | |||
72 | not care how it's implemented.) | 72 | not care how it's implemented.) |
73 | 73 | ||
74 | That said, if the convention is supported on their platform, drivers should | 74 | That said, if the convention is supported on their platform, drivers should |
75 | use it when possible. Platforms must declare GENERIC_GPIO support in their | 75 | use it when possible. Platforms must select ARCH_REQUIRE_GPIOLIB or |
76 | Kconfig (boolean true), and provide an <asm/gpio.h> file. Drivers that can't | 76 | ARCH_WANT_OPTIONAL_GPIOLIB in their Kconfig. Drivers that can't work without |
77 | work without standard GPIO calls should have Kconfig entries which depend | 77 | standard GPIO calls should have Kconfig entries which depend on GPIOLIB. The |
78 | on GENERIC_GPIO. The GPIO calls are available, either as "real code" or as | 78 | GPIO calls are available, either as "real code" or as optimized-away stubs, |
79 | optimized-away stubs, when drivers use the include file: | 79 | when drivers use the include file: |
80 | 80 | ||
81 | #include <linux/gpio.h> | 81 | #include <linux/gpio.h> |
82 | 82 | ||