i2c: convert SMBus alert setup function to return an ERRPTR
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 28 Feb 2020 17:12:20 +0000 (18:12 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 10 Mar 2020 11:19:52 +0000 (12:19 +0100)
commited680522268da2f6f2a67505dd144e718d726712
treeb1ece58be4d20c46e21e8d0cd7d5b7f3e0744ed8
parent0f8205640784a263bf9fead2729a0820dae01eee
i2c: convert SMBus alert setup function to return an ERRPTR

Only few drivers use this call, so drivers and I2C core are converted at
once with this patch. By simply using i2c_new_client_device() instead of
i2c_new_device(), we easily can return an ERRPTR for this function as
well. To make out of tree users aware that something changed, the
function is renamed to i2c_new_smbus_alert_device().

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Documentation/i2c/smbus-protocol.rst
drivers/i2c/busses/i2c-parport.c
drivers/i2c/busses/i2c-thunderx-pcidrv.c
drivers/i2c/busses/i2c-xlp9xx.c
drivers/i2c/i2c-core-smbus.c
drivers/i2c/i2c-smbus.c
include/linux/i2c-smbus.h