diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2020-02-28 18:12:20 +0100 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2020-03-10 12:19:52 +0100 |
commit | ed680522268da2f6f2a67505dd144e718d726712 (patch) | |
tree | b1ece58be4d20c46e21e8d0cd7d5b7f3e0744ed8 /Documentation/i2c/smbus-protocol.rst | |
parent | 0f8205640784a263bf9fead2729a0820dae01eee (diff) | |
download | linux-stable-ed680522268da2f6f2a67505dd144e718d726712.tar.gz linux-stable-ed680522268da2f6f2a67505dd144e718d726712.tar.bz2 linux-stable-ed680522268da2f6f2a67505dd144e718d726712.zip |
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>
Diffstat (limited to 'Documentation/i2c/smbus-protocol.rst')
-rw-r--r-- | Documentation/i2c/smbus-protocol.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/i2c/smbus-protocol.rst b/Documentation/i2c/smbus-protocol.rst index c122ed239f7f..c2e29633071e 100644 --- a/Documentation/i2c/smbus-protocol.rst +++ b/Documentation/i2c/smbus-protocol.rst @@ -274,7 +274,7 @@ to know which slave triggered the interrupt. This is implemented the following way in the Linux kernel: * I2C bus drivers which support SMBus alert should call - i2c_setup_smbus_alert() to setup SMBus alert support. + i2c_new_smbus_alert_device() to install SMBus alert support. * I2C drivers for devices which can trigger SMBus alerts should implement the optional alert() callback. |