]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9643cf639222e41aa9b05e99bfdae3f0a8de8aad
tree375ac15e46074ac2e8b45d12b7bd2556be6e9be4
parent2d7299fdcfe4dcd640f2427183f4ec12bd2d2ebd
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