staging: iio: resolver: ad2s1210: rework gpios
authorDavid Lechner <dlechner@baylibre.com>
Fri, 29 Sep 2023 17:23:18 +0000 (12:23 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 5 Oct 2023 13:44:00 +0000 (14:44 +0100)
commit168115f989311867b48292f4f056eb2f96cef67b
tree2f14a9823cb9c32a8fa3aed590ae56b6a38e0d2d
parent8ab5bf1a2264e380635913bc9ac72d1ab55088c0
staging: iio: resolver: ad2s1210: rework gpios

- Remove "adi," prefix from gpio names.
- Sample gpio is now expected to be active low.
- Convert A0 and A1 gpios to "mode-gpios" gpio array.
- Convert RES0 and RES1 gpios to "resolution-gpios" gpio array.
- Remove extraneous lookup tables.
- Remove unused mode field from state struct.
- Swap argument order of ad2s1210_set_mode() while we are touching this.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://lore.kernel.org/r/20230929-ad2s1210-mainline-v3-13-fa4364281745@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/resolver/ad2s1210.c