Skip to content
Commit 414236b8 authored by Chris Packham's avatar Chris Packham Committed by Stefan Roese
Browse files

i2c: i2c-gpio: Correctly handle new {sda, scl}-gpios bindings



gpio_request_list_by_name() returns the number of gpios requested.
Notably it swallows the underlying -ENOENT when the "gpios" property
does not exist.

Update the i2c-gpio driver to check for ret == 0 before trying the new
sda-gpios/scl-gpios properties.

Signed-off-by: default avatarChris Packham <judge.packham@gmail.com>
parent a36d59ba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment