]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: pca-platform: Fix GPIO lookup code
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 30 May 2019 20:24:24 +0000 (22:24 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 12 Jun 2019 10:54:06 +0000 (12:54 +0200)
commit680a8b0055a12a2bdae6e7470def3ba4f48b7aa3
treefca349eca4dca0ed42326e9e7c39cf6acae8c89c
parentd2b12988aabe278af5d67904738f30b97e6c086c
i2c: pca-platform: Fix GPIO lookup code

The devm_gpiod_request_gpiod() call will add "-gpios" to
any passed connection ID before looking it up.

I do not think the reset GPIO on this platform is named
"reset-gpios-gpios" but rather "reset-gpios" in the device
tree, so fix this up so that we get a proper reset GPIO
handle.

Also drop the inclusion of the legacy GPIO header.

Fixes: 7da4bedeebda ("i2c: pca-platform: add devicetree awareness")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-pca-platform.c