iio: ad7266: Convert to use GPIO descriptors
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 2 Dec 2019 09:38:06 +0000 (10:38 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 15 Dec 2019 11:42:16 +0000 (11:42 +0000)
commit5750ebab14907f05aa9904ef2f3c1bb8dcb1fd2b
treec730ca9e7d9cc41e196ec874e48c62e8cbc8586f
parentb747e352499e4fca6e2e824852f5d91f4e29bf0e
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 <amsfield22@gmail.com>
Cc: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7266.c
include/linux/platform_data/ad7266.h