From patchwork Tue Sep 19 17:48:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 13391723 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C2ED5CE79AA for ; Tue, 19 Sep 2023 17:51:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Pi2tj+YQlj0pJnyYW2hmQe1ZKm/nyUijAq0XIU4WFP0=; b=QT6WKjPYwoKmr7 So1dIz701L4CaxT9BjZ1v0rWp44enKCZBTW3hNBS/XQhF0MtaRzP2NZJWJbSXKAv6lUhLoGhYzwe9 KB1HnTeFGwj8g2qjQzjQIvbCEFQJb7RY/z9oZOj9corOyckPJr0FJCPaY++NbM18RLkWFbOtI05Fh AuikMxadueujKlp8Wr6QZlIEKyogifAsrfRm6xFJd1/4DLmLnuSf8UY7EOavcS8kFVmw6ci2Pq2Zf HGRbQmdAl3jZBsBpMJVaEJIiJBfRF6CHPDKCAT2snseMLUzrqKm1vOw8tODnPVLoy4YpC0rgc7/3V 5yv2MB0dAGTYajLL89aQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qiesh-000zum-1b; Tue, 19 Sep 2023 17:51:27 +0000 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qierk-000zHx-16 for linux-amlogic@lists.infradead.org; Tue, 19 Sep 2023 17:50:34 +0000 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qierE-0006Jj-CX; Tue, 19 Sep 2023 19:49:56 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qier4-007VVT-A1; Tue, 19 Sep 2023 19:49:46 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1qier3-0034WI-Qd; Tue, 19 Sep 2023 19:49:45 +0200 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Jonathan Cameron Cc: Jiri Kosina , Srinivas Pandruvada , Lars-Peter Clausen , linux-input@vger.kernel.org, linux-iio@vger.kernel.org, kernel@pengutronix.de, Linus Walleij , linux-arm-kernel@lists.infradead.org, Eugen Hristev , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Jinjie Ruan , Rob Herring , Heiko Stuebner , Yang Yingliang , Chen-Yu Tsai , Aidan MacDonald , Andy Shevchenko , Ray Jui , Scott Branden , Broadcom internal kernel review list , Hartley Sweeten , Alexander Sverdlin , Krzysztof Kozlowski , Alim Akhtar , linux-samsung-soc@vger.kernel.org, Shawn Guo , Sascha Hauer , Fabio Estevam , NXP Linux Team , Andreas Klinger , Cai Huoqing , Haibo Chen , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , George Stark , Andy Shevchenko , =?utf-8?q?Nuno_S=C3=A1?= , linux-amlogic@lists.infradead.org, Saravanan Sekar , Jiakai Luo , Dongliang Mu , Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , openbmc@lists.ozlabs.org, Andy Gross , Bjorn Andersson , Konrad Dybcio , linux-arm-msm@vger.kernel.org, Marek Vasut , Maxime Coquelin , Alexandre Torgue , Olivier Moysan , Fabrice Gasnier , Zhang Shurong , Yangtao Li , linux-stm32@st-md-mailman.stormreply.com, Sean Nyekjaer , Tom Rix , Jernej Skrabec , Samuel Holland , "Rafael J. Wysocki" , Damien Le Moal , Mark Brown , Ido Schimmel , Daniel Lezcano , linux-sunxi@lists.linux.dev, Dmitry Torokhov , Andreas Kemnade , Peter Rosin , Vladimir Zapolskiy , Kevin Tsai , Benson Leung , Guenter Roeck , chrome-platform@lists.linux.dev Subject: [PATCH 00/49] iio: Convert to platform remove callback returning void Date: Tue, 19 Sep 2023 19:48:42 +0200 Message-Id: <20230919174931.1417681-1-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=8269; i=u.kleine-koenig@pengutronix.de; h=from:subject; bh=cuk3jxOiXgIUBikmjG+zsljm9zaWYjBmeiLtAd8rO9k=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBlCd7vIlP2VeriuGG1jpId5rgS1c3dyBe3FAkva bOz+Cms2ZmJATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCZQne7wAKCRCPgPtYfRL+ TsaKCACYcNf6TucJIdrcTmQocW5rXVUHd8FGg6zjf77q9iaRUcrRyMgufZi9kHX8CoIc2VNzbsv Sde9oTXarxauVNSU2DTuCbLLiugw9ge4kE3wo0PdLHL9coUwmk305A07oPwBGaGcdefyG/pv0mS 7mgPmofLk6Td5oOSGwnSqH4xwnrUxuSzcFX4MpqRhtkP32Fzg+DnME4I4s2cGFXTFIqg/vAGlsa Uwoc2RCCeY71MmhjdOQIxaY3AhrFWMB+ykVE9omgDbWdXlwtJTMvje2RVVEzY+gNAnN8MTMBoE4 21HS4CQJwqcc/GDvaxBw4owlQCUlt+760qbqOvyBf33TGiQz X-Developer-Key: i=u.kleine-koenig@pengutronix.de; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-amlogic@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230919_105028_545450_DD7DC5AE X-CRM114-Status: GOOD ( 12.24 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org this series converts all platform drivers below drivers/iio to use .remove_new(). The motivation is to get rid of an integer return code that is (mostly) ignored by the platform driver core and error prone on the driver side. As all platform drivers return zero unconditionally in their remove callback up to now, the conversions are "trivial". See commit 5c5a7680e67b ("platform: Provide a remove callback that returns no value") for an extended explanation and the eventual goal. There are no interdependencies between the patches. As there are still quite a few drivers to convert, I'm happy about every patch that makes it in. So even if there is a merge conflict with one patch until you apply or I picked a wrong subject prefix, please apply the remainder of this series anyhow. Best regards Uwe Uwe Kleine-König (49): iio: accel: hid-sensor-accel-3d: Convert to platform remove callback returning void iio: adc: ab8500-gpadc: Convert to platform remove callback returning void iio: adc: at91-sama5d2: Convert to platform remove callback returning void iio: adc: at91: Convert to platform remove callback returning void iio: adc: axp20x: Convert to platform remove callback returning void iio: adc: bcm_iproc: Convert to platform remove callback returning void iio: adc: dln2: Convert to platform remove callback returning void iio: adc: ep93xx: Convert to platform remove callback returning void iio: adc: exynos: Convert to platform remove callback returning void iio: adc: fsl-imx25-gcq: Convert to platform remove callback returning void iio: adc: hx711: Convert to platform remove callback returning void iio: adc: imx8qxp: Convert to platform remove callback returning void iio: adc: imx93: Convert to platform remove callback returning void iio: adc: meson_saradc: Convert to platform remove callback returning void iio: adc: mp2629: Convert to platform remove callback returning void iio: adc: mxs-lradc: Convert to platform remove callback returning void iio: adc: npcm: Convert to platform remove callback returning void iio: adc: qcom-pm8xxx-xoadc: Convert to platform remove callback returning void iio: adc: rcar-gyroadc: Convert to platform remove callback returning void iio: adc: stm32-adc-core: Convert to platform remove callback returning void iio: adc: stm32-adc: Convert to platform remove callback returning void iio: adc: stm32-dfsdm-adc: Convert to platform remove callback returning void iio: adc: stm32-dfsdm-core: Convert to platform remove callback returning void iio: adc: sun4i-gpadc-iio: Convert to platform remove callback returning void iio: adc: ti_am335x_adc: Convert to platform remove callback returning void iio: adc: twl4030-madc: Convert to platform remove callback returning void iio: adc: twl6030-gpadc: Convert to platform remove callback returning void iio: adc: vf610_adc: Convert to platform remove callback returning void iio: dac: dpot-dac: Convert to platform remove callback returning void iio: dac: lpc18xx_dac: Convert to platform remove callback returning void iio: dac: stm32-dac-core: Convert to platform remove callback returning void iio: dac: stm32-dac: Convert to platform remove callback returning void iio: dac: vf610: Convert to platform remove callback returning void iio: gyro: hid-sensor-gyro-3d: Convert to platform remove callback returning void iio: humidity: hid-sensor-humidity: Convert to platform remove callback returning void iio: light: cm3605: Convert to platform remove callback returning void iio: light: hid-sensor-als: Convert to platform remove callback returning void iio: light: hid-sensor-prox: Convert to platform remove callback returning void iio: light: lm3533-als: Convert to platform remove callback returning void iio: magnetometer: hid-sensor-magn-3d: Convert to platform remove callback returning void iio: orientation: hid-sensor-incl-3d: Convert to platform remove callback returning void iio: orientation: hid-sensor-rotation: Convert to platform remove callback returning void iio: position: hid-sensor-custom-intel-hinge: Convert to platform remove callback returning void iio: pressure: hid-sensor: Convert to platform remove callback returning void iio: proximity: cros_ec_mkbp: Convert to platform remove callback returning void iio: proximity: srf04: Convert to platform remove callback returning void iio: temperature: hid-sensor: Convert to platform remove callback returning void iio: trigger: iio-trig-interrupt: Convert to platform remove callback returning void iio: trigger: stm32-timer: Convert to platform remove callback returning void drivers/iio/accel/hid-sensor-accel-3d.c | 6 ++---- drivers/iio/adc/ab8500-gpadc.c | 6 ++---- drivers/iio/adc/at91-sama5d2_adc.c | 6 ++---- drivers/iio/adc/at91_adc.c | 6 ++---- drivers/iio/adc/axp20x_adc.c | 6 ++---- drivers/iio/adc/bcm_iproc_adc.c | 6 ++---- drivers/iio/adc/dln2-adc.c | 5 ++--- drivers/iio/adc/ep93xx_adc.c | 6 ++---- drivers/iio/adc/exynos_adc.c | 6 ++---- drivers/iio/adc/fsl-imx25-gcq.c | 6 ++---- drivers/iio/adc/hx711.c | 6 ++---- drivers/iio/adc/imx8qxp-adc.c | 6 ++---- drivers/iio/adc/imx93_adc.c | 6 ++---- drivers/iio/adc/meson_saradc.c | 6 ++---- drivers/iio/adc/mp2629_adc.c | 6 ++---- drivers/iio/adc/mxs-lradc-adc.c | 6 ++---- drivers/iio/adc/npcm_adc.c | 6 ++---- drivers/iio/adc/qcom-pm8xxx-xoadc.c | 6 ++---- drivers/iio/adc/rcar-gyroadc.c | 6 ++---- drivers/iio/adc/stm32-adc-core.c | 6 ++---- drivers/iio/adc/stm32-adc.c | 6 ++---- drivers/iio/adc/stm32-dfsdm-adc.c | 6 ++---- drivers/iio/adc/stm32-dfsdm-core.c | 6 ++---- drivers/iio/adc/sun4i-gpadc-iio.c | 8 +++----- drivers/iio/adc/ti_am335x_adc.c | 6 ++---- drivers/iio/adc/twl4030-madc.c | 6 ++---- drivers/iio/adc/twl6030-gpadc.c | 6 ++---- drivers/iio/adc/vf610_adc.c | 6 ++---- drivers/iio/dac/dpot-dac.c | 6 ++---- drivers/iio/dac/lpc18xx_dac.c | 6 ++---- drivers/iio/dac/stm32-dac-core.c | 6 ++---- drivers/iio/dac/stm32-dac.c | 6 ++---- drivers/iio/dac/vf610_dac.c | 6 ++---- drivers/iio/gyro/hid-sensor-gyro-3d.c | 6 ++---- drivers/iio/humidity/hid-sensor-humidity.c | 6 ++---- drivers/iio/light/cm3605.c | 6 ++---- drivers/iio/light/hid-sensor-als.c | 6 ++---- drivers/iio/light/hid-sensor-prox.c | 6 ++---- drivers/iio/light/lm3533-als.c | 6 ++---- drivers/iio/magnetometer/hid-sensor-magn-3d.c | 6 ++---- drivers/iio/orientation/hid-sensor-incl-3d.c | 6 ++---- drivers/iio/orientation/hid-sensor-rotation.c | 6 ++---- drivers/iio/position/hid-sensor-custom-intel-hinge.c | 6 ++---- drivers/iio/pressure/hid-sensor-press.c | 6 ++---- drivers/iio/proximity/cros_ec_mkbp_proximity.c | 6 ++---- drivers/iio/proximity/srf04.c | 6 ++---- drivers/iio/temperature/hid-sensor-temperature.c | 6 ++---- drivers/iio/trigger/iio-trig-interrupt.c | 6 ++---- drivers/iio/trigger/stm32-timer-trigger.c | 6 ++---- 49 files changed, 99 insertions(+), 196 deletions(-) base-commit: 29e400e3ea486bf942b214769fc9778098114113