commit | d3447b5589135e3a453eae5976bba17ee0a2c35a | [log] [tgz] |
---|---|---|
author | Chris Packham <judge.packham@gmail.com> | Wed Jul 26 11:13:08 2023 +1200 |
committer | Stefan Roese <sr@denx.de> | Mon Jul 31 13:50:57 2023 +0200 |
tree | ba0be3a6cb4c1ca68e3a8c6f5dc88e42b73869c6 | |
parent | d486812d14c79f7655d7aa0ccf9267238ff02fa3 [diff] |
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: Chris Packham <judge.packham@gmail.com>