From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfram Sang Subject: [PATCH v2 0/2] i2c: updates to SMBus alert setup Date: Fri, 28 Feb 2020 18:12:19 +0100 Message-ID: <20200228171221.5412-1-wsa+renesas@sang-engineering.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Return-path: Received: from sauhun.de ([88.99.104.3]:60020 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726536AbgB1RMc (ORCPT ); Fri, 28 Feb 2020 12:12:32 -0500 Sender: linux-i2c-owner@vger.kernel.org List-Id: linux-i2c@vger.kernel.org To: linux-i2c@vger.kernel.org Cc: Benjamin Tissoires , Phil Reid , Robert Richter , Wolfram Sang 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 cleans up some outdated documentation which was discovered while working on the earlier patches. Changes since V1: - used PTR_ERR_OR_ZERO in one place (thanks buildbot) - better name of the new function (thanks Jean, Robert, and Luca for the discussion) - one patch dropped from the old series, no need anymore to keep the function names in sync Patches are on top of v5.6-rc3 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 (2): i2c: convert SMBus alert setup function to return an ERRPTR i2c: smbus: remove outdated references to irq level triggers Documentation/i2c/smbus-protocol.rst | 2 +- drivers/i2c/busses/i2c-parport.c | 12 +++++++---- drivers/i2c/busses/i2c-thunderx-pcidrv.c | 11 +++++++--- drivers/i2c/busses/i2c-xlp9xx.c | 10 ++++++--- drivers/i2c/i2c-core-smbus.c | 26 ++++++++---------------- drivers/i2c/i2c-smbus.c | 2 +- include/linux/i2c-smbus.h | 9 ++------ 7 files changed, 35 insertions(+), 37 deletions(-) -- 2.20.1