]> www.infradead.org Git - users/hch/misc.git/commit
i2c: also convert placeholder function to return errno
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 25 Jul 2020 14:07:36 +0000 (16:07 +0200)
committerWolfram Sang <wsa@kernel.org>
Mon, 27 Jul 2020 18:16:58 +0000 (20:16 +0200)
commit8be23aec0ee151de731626d5578973fde25b2285
tree4fb66bd92b8a4a8bdda7b9462f8f46b84ce9e9e4
parent92ed301919932f777713b9172e525674157e983d
i2c: also convert placeholder function to return errno

All i2c_new_device-alike functions return ERR_PTR these days, but this
fallback function was missed.

Fixes: 2dea645ffc21 ("i2c: acpi: Return error pointers from i2c_acpi_new_device()")
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
[wsa: changed from 'ENOSYS' to 'ENODEV']
Signed-off-by: Wolfram Sang <wsa@kernel.org>
include/linux/i2c.h