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: 13391714 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 70672CE79A9 for ; Tue, 19 Sep 2023 17:50:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232411AbjISRvA (ORCPT ); Tue, 19 Sep 2023 13:51:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233004AbjISRuy (ORCPT ); Tue, 19 Sep 2023 13:50:54 -0400 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [IPv6:2a0a:edc0:2:b01:1d::104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 796C8C9 for ; Tue, 19 Sep 2023 10:50:41 -0700 (PDT) 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-input@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.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