mbox series

[0/3] i2c: updates to SMBus alert setup

Message ID 20200210172929.6001-1-wsa+renesas@sang-engineering.com
Headers show
Series i2c: updates to SMBus alert setup | expand

Message

Wolfram Sang Feb. 10, 2020, 5:29 p.m. UTC
The main motivation for this series is to convert
i2c_setup_smbus_alert() to a function which returns an ERRPTR instead of
NULL. Because there are only a few driver using this function they are
all converted in one go (patch 1). The function is also renamed to make
sure out-of-tree users will note they have to update (or better
upstream). Patch 2 renames the of-equivalent, too, so both functions
keep in sync. Patch 3 cleans up some outdated documentation which was
discovered while working on the earlier patches.

Patches are on top of v5.6-rc1 and can be found here:

git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git renesas/i2c/new_client_device

Only build tested. Testing and reviews from people actually using SMBus
alert would be much appreciated!

Thanks,

   Wolfram


Wolfram Sang (3):
  i2c: convert SMBus alert setup function to return an ERRPTR
  i2c: rename of_i2c_setup_smbus_alert() to keep in sync
  i2c: smbus: remove outdated references to irq level triggers

 Documentation/i2c/smbus-protocol.rst     |  2 +-
 drivers/i2c/busses/i2c-parport.c         | 11 ++++++---
 drivers/i2c/busses/i2c-thunderx-pcidrv.c | 11 ++++++---
 drivers/i2c/busses/i2c-xlp9xx.c          | 10 +++++---
 drivers/i2c/i2c-core-base.c              |  2 +-
 drivers/i2c/i2c-core-smbus.c             | 31 ++++++++++--------------
 drivers/i2c/i2c-smbus.c                  |  2 +-
 include/linux/i2c-smbus.h                | 11 +++------
 8 files changed, 41 insertions(+), 39 deletions(-)