i2c: mux: arb-gpio: Rewrite to use GPIO descriptors
authorLinus Walleij <linus.walleij@linaro.org>
Sat, 1 Jun 2019 16:59:31 +0000 (18:59 +0200)
committerPeter Rosin <peda@axentia.se>
Mon, 10 Jun 2019 07:28:50 +0000 (09:28 +0200)
commitd9a183bfd29d44c927b3920ae49ba2f682793976
tree8f2f8352ef34829dc2e0f4160e8a5130c5cdf9b6
parent1f3b69b6b939d870c22182d29e1b357ba6c9a0ed
i2c: mux: arb-gpio: Rewrite to use GPIO descriptors

Instead of complex code picking GPIOs out of the device tree
and keeping track of polarity for each GPIO line, use descriptors
and pull polarity handling into the gpiolib.

We look for "our-claim" and "their-claim" since the gpiolib
code will try e.g. "our-claim-gpios" and "our-claim-gpio" in
turn to locate these GPIO lines from the device tree.

Cc: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: Doug Anderson <dianders@chromium.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Peter Rosin <peda@axentia.se>
drivers/i2c/muxes/i2c-arb-gpio-challenge.c