i2c: mux: pca954x: Use the descriptor-based GPIO API
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 3 Jun 2014 11:15:26 +0000 (13:15 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 3 Jun 2014 12:24:20 +0000 (14:24 +0200)
commit4807e8459bce425973c6c6a4f3bb2bb9b7aa0a36
tree375ac15e46074ac2e8b45d12b7bd2556be6e9be4
parentd49019a0696b0a234d304a7b3e1e545e850f4691
i2c: mux: pca954x: Use the descriptor-based GPIO API

The ID-based GPIO API pushes handling of GPIO polarity to drivers.
Simplify the driver by switching to the descriptor-based GPIO API.

This also fixes a mismatch between the pca954x DT bindings that document
a "reset-gpios" property and the driver that requests a "reset-gpio"
property.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/muxes/i2c-mux-pca954x.c