i2c: pca-platform: unconditionally use devm_gpiod_get_optional
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Wed, 5 Jul 2017 10:13:56 +0000 (22:13 +1200)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 24 Mar 2018 12:26:00 +0000 (13:26 +0100)
commit06783261751a44c63680e94005a4763151bc1134
treefa95da73950f8814502e51274301cd3d78ce58bc
parentdf0d32348aa81208a0037b959dc23c4739439c02
i2c: pca-platform: unconditionally use devm_gpiod_get_optional

Allow for the reset-gpios property to be defined in the device tree
or via a GPIO lookup table.

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-pca-platform.c