diff options
| author | Linus Walleij <[email protected]> | 2019-12-02 10:38:06 +0100 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2019-12-15 11:42:16 +0000 |
| commit | 5750ebab14907f05aa9904ef2f3c1bb8dcb1fd2b (patch) | |
| tree | c730ca9e7d9cc41e196ec874e48c62e8cbc8586f /include/linux/platform_data | |
| parent | b747e352499e4fca6e2e824852f5d91f4e29bf0e (diff) | |
iio: ad7266: Convert to use GPIO descriptors
The AD7266 have no in-tree users making use of the platform
data mechanism to pass address GPIO lines when not using
a fixed address, so we can easily convert this to use
GPIO descriptors instead of the platform data integers
currently passed.
Lowercase the labels "ad0".."ad2" as this will make a better
fit for platform descriptions like device tree that prefer
lowercase names such as "ad0-gpios" rather than "AD0-gpios".
Board files and other static users of this device can pass
the same GPIO descriptors using machine descriptor
tables if need be.
Cc: Alison Schofield <[email protected]>
Cc: Lars-Peter Clausen <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Reviewed-by: Alexandru Ardelean <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/ad7266.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/platform_data/ad7266.h b/include/linux/platform_data/ad7266.h index 7de6c16122df..f0652567afba 100644 --- a/include/linux/platform_data/ad7266.h +++ b/include/linux/platform_data/ad7266.h @@ -40,14 +40,11 @@ enum ad7266_mode { * @range: Reference voltage range the device is configured for * @mode: Sample mode the device is configured for * @fixed_addr: Whether the address pins are hard-wired - * @addr_gpios: GPIOs used for controlling the address pins, only used if - * fixed_addr is set to false. */ struct ad7266_platform_data { enum ad7266_range range; enum ad7266_mode mode; bool fixed_addr; - unsigned int addr_gpios[3]; }; #endif |