]> git.ipfire.org Git - thirdparty/linux.git/commit
i2c: testunit: improve error handling for GPIO
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 9 Sep 2024 10:14:50 +0000 (12:14 +0200)
committerWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 8 Oct 2024 08:15:42 +0000 (10:15 +0200)
commit6b238b3c45eb67d3083d55dc17463d1f43e002a7
tree4ffe52653646a715f17067c6bdfe09aef8a2b0ff
parent8cf0b93919e13d1e8d4466eb4080a4c4d9d66d7b
i2c: testunit: improve error handling for GPIO

Bail out in probe if getting the optional GPIO returns an error. Bail
out in the test early if the optional GPIO is not present, otherwise the
timeout errno is misleading.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
drivers/i2c/i2c-slave-testunit.c