From patchwork Wed Jul 5 08:06: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: 13301794 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [85.220.165.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E2040186D for ; Wed, 5 Jul 2023 08:07:20 +0000 (UTC) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qGxXO-0003pD-SO; Wed, 05 Jul 2023 10:06:58 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1qGxXM-00CDNB-2g; Wed, 05 Jul 2023 10:06:56 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1qGxXK-002Oar-Ns; Wed, 05 Jul 2023 10:06:54 +0200 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Thierry Reding Cc: linux-pwm@vger.kernel.org, kernel@pengutronix.de, Krzysztof Kozlowski , Alim Akhtar , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, Paul Cercueil , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , linux-mips@vger.kernel.org, Lee Jones , George Stark , Benson Leung , Guenter Roeck , Tzung-Bi Shih , chrome-platform@lists.linux.dev Subject: [PATCH v2 0/8] pwm: Get rid of pwm_[sg]et_chip_data() Date: Wed, 5 Jul 2023 10:06:42 +0200 Message-Id: <20230705080650.2353391-1-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: chrome-platform@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2092; i=u.kleine-koenig@pengutronix.de; h=from:subject; bh=u4Z0GmFDTWtwLEP2HHVUlz+BVemZihHRxz0BXPl6pMI=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBkpSSMvXlGQ8oFjDHYdRsE/iDjQCfYp2AvrCWKK 1aP+qcQUR6JATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCZKUkjAAKCRCPgPtYfRL+ TraOCACTPjXf8+TAzBnVeOY7qqFplcSzgSgICZsqqtlos7gZT1+KW9Ny9RQDN16wMQ6Q7ucg1Cp +xFa51wLHF5Pue9cn2xpppSO9+qXH416dIReCQRsf8l4tmegE796e7fzJ55unuda3e6Vit09PWg CiM5Xj5xbFu0o6f7erCJ+Vbt8jSTZAk5TQ7gN2TkJcsM3nh61vV/8fLZfoYK1VGomOr/e3wpc/8 43HfjI5oXyvs/4QjD9elp2Lf5aHTb4ytfeGkK4IyPd8G0epIhAGSPzoCBKgmjsCGaLIO5ne/am+ HiBadheZ/OiUvvU2Mus0sJLrzabNCCgTCK2oEuojih0o7QQo 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.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: chrome-platform@lists.linux.dev Hello, the changes since (implicit) v1 of this series[1] are: - Consistently write "per-channel" in the short log. - [jz4740] Make use of struct_size(), thanks to Paul Cercueil for pointing that out. - [cros-ec] Add missing kernel-doc for new struct member, thanks to Tzung-Bi Shih for pointing that out. - [cros-ec] Make use of devm_kcalloc. - [jz4740] Add Reviewed-by tag for Philippe Mathieu-Daudé. - [cros-ec] Add Reviewed-by tag for Tzung-Bi Shih. The first seven patches have no interdependencies, the last depends on all others. The sti driver has two problems that are fixed by patch #6. You could apply it earlier already, but given that the issues are already old there is IMHO no urge. [1] https://lore.kernel.org/linux-pwm/20230629094839.757092-1-u.kleine-koenig@pengutronix.de [2] The newer issue was introduced with e926b12c611c ("pwm: Clear chip_data in pwm_put()") for v5.2-rc1 in May 2019. Uwe Kleine-König (8): pwm: berlin: Put per-channel config into driver data pwm: samsung: Put per-channel data into driver data pwm: jz4740: Put per-channel clk into driver data pwm: lp3943: Drop usage of pwm_[gs]et_chip_data() pwm: renesas: Drop usage of pwm_[gs]et_chip_data() pwm: sti: Reduce number of allocations and drop usage of chip_data pwm: cros-ec: Put per-channel data into driver data pwm: Drop pwm_[sg]et_chip_data() drivers/pwm/core.c | 31 ----------------------------- drivers/pwm/pwm-berlin.c | 37 ++++++----------------------------- drivers/pwm/pwm-cros-ec.c | 33 +++++++++---------------------- drivers/pwm/pwm-jz4740.c | 11 +++++++---- drivers/pwm/pwm-lp3943.c | 21 +++++++------------- drivers/pwm/pwm-renesas-tpu.c | 22 ++++++++++----------- drivers/pwm/pwm-samsung.c | 20 +++++-------------- drivers/pwm/pwm-sti.c | 29 +++++++++++++-------------- include/linux/pwm.h | 14 ------------- 9 files changed, 59 insertions(+), 159 deletions(-) base-commit: 92554cdd428fce212d2a71a06939e7cab90f7c77