public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/8] interconnect: Prepare making platform remove callbacks return void
@ 2022-07-15 20:36 Uwe Kleine-König
  2022-07-15 20:36 ` [PATCH 1/8] interconnect: imx: Ignore return value of icc_provider_del() in .remove() Uwe Kleine-König
                   ` (7 more replies)
  0 siblings, 8 replies; 11+ messages in thread
From: Uwe Kleine-König @ 2022-07-15 20:36 UTC (permalink / raw)
  To: Georgi Djakov, Shawn Guo, Sascha Hauer, Andy Gross,
	Bjorn Andersson
  Cc: kernel, Fabio Estevam, NXP Linux Team, linux-pm, linux-arm-kernel,
	linux-kernel, linux-arm-msm

Hello,

today remove callbacks of platform devices return an int. This is unfortunate
because the device core ignores the return value and so the platform code only
emits a warning (and still removes the device).

My longterm quest is to make these remove callbacks return void instead.
This series is a preparation for that, with the goal to make the remove
callbacks obviously always return 0. This way when the prototype of
these functions is changed to return void, the change is straigt forward
and easy to review.

Best regards
Uwe

Uwe Kleine-König (8):
  interconnect: imx: Ignore return value of icc_provider_del() in
    .remove()
  interconnect: icc-rpm: Ignore return value of icc_provider_del() in
    .remove()
  interconnect: icc-rpmh: Ignore return value of icc_provider_del() in
    .remove()
  interconnect: msm8974: Ignore return value of icc_provider_del() in
    .remove()
  interconnect: osm-l3: Ignore return value of icc_provider_del() in
    .remove()
  interconnect: sm8450: Ignore return value of icc_provider_del() in
    .remove()
  interconnect: Make icc_provider_del() return void
  interconnect: imx: Make imx_icc_unregister() return void

 drivers/interconnect/core.c           | 10 +++-------
 drivers/interconnect/imx/imx.c        |  4 ++--
 drivers/interconnect/imx/imx.h        |  2 +-
 drivers/interconnect/imx/imx8mm.c     |  4 +++-
 drivers/interconnect/imx/imx8mn.c     |  4 +++-
 drivers/interconnect/imx/imx8mq.c     |  4 +++-
 drivers/interconnect/qcom/icc-rpm.c   |  4 +++-
 drivers/interconnect/qcom/icc-rpmh.c  |  4 +++-
 drivers/interconnect/qcom/msm8974.c   |  4 +++-
 drivers/interconnect/qcom/osm-l3.c    |  4 +++-
 drivers/interconnect/qcom/sm8450.c    |  4 +++-
 include/linux/interconnect-provider.h |  2 +-
 12 files changed, 31 insertions(+), 19 deletions(-)


base-commit: f2906aa863381afb0015a9eb7fefad885d4e5a56
-- 
2.36.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-07-18 12:16 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-15 20:36 [PATCH 0/8] interconnect: Prepare making platform remove callbacks return void Uwe Kleine-König
2022-07-15 20:36 ` [PATCH 1/8] interconnect: imx: Ignore return value of icc_provider_del() in .remove() Uwe Kleine-König
2022-07-15 20:36 ` [PATCH 2/8] interconnect: icc-rpm: " Uwe Kleine-König
2022-07-15 20:36 ` [PATCH 3/8] interconnect: icc-rpmh: " Uwe Kleine-König
2022-07-15 20:36 ` [PATCH 4/8] interconnect: msm8974: " Uwe Kleine-König
2022-07-15 20:36 ` [PATCH 5/8] interconnect: osm-l3: " Uwe Kleine-König
2022-07-15 20:36 ` [PATCH 6/8] interconnect: sm8450: " Uwe Kleine-König
2022-07-15 20:36 ` [PATCH 7/8] interconnect: Make icc_provider_del() return void Uwe Kleine-König
2022-07-18  9:10   ` Georgi Djakov
2022-07-18 12:16     ` Uwe Kleine-König
2022-07-15 20:36 ` [PATCH 8/8] interconnect: imx: Make imx_icc_unregister() " Uwe Kleine-König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox