mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/5] spmi: Add and use managed resource helpers
@ 2023-08-24 10:40 Fei Shao
  2023-08-24 10:40 ` [PATCH 1/5] spmi: Introduce device-managed functions Fei Shao
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Fei Shao @ 2023-08-24 10:40 UTC (permalink / raw)
  To: Stephen Boyd, Chen-Yu Tsai
  Cc: linux-mediatek, Fei Shao, AngeloGioacchino Del Regno,
	Matthias Brugger, Mauro Carvalho Chehab, linux-arm-kernel,
	linux-kernel

Hi,

This series adds and converts to the devm_* helpers in the SPMI driver,
based on the suggestion in [1].

While at it, I have some patches fixing other minor issues as well, like
reordering the remove sequence in spmi-mtk-pmif and using proper error
return code etc.

This patch is based on next-20230824 and [2] which is not yet applied,
in order to avoid potential conflicts.

[1]: https://lore.kernel.org/all/20230821033532.GA21555@google.com/
[2]: https://lore.kernel.org/all/20230717173934.1.If004a6e055a189c7f2d0724fa814422c26789839@changeid/


Fei Shao (5):
  spmi: Introduce device-managed functions
  spmi: Use devm_spmi_controller_alloc()
  spmi: mtk-pmif: Reorder driver remove sequence
  spmi: hisi-spmi-controller: Use devm_spmi_controller_add()
  spmi: Return meaningful errors in spmi_controller_alloc()

 drivers/spmi/Makefile               |  2 +-
 drivers/spmi/devres.c               | 61 ++++++++++++++++++++
 drivers/spmi/hisi-spmi-controller.c | 32 +++--------
 drivers/spmi/spmi-mtk-pmif.c        | 28 ++++------
 drivers/spmi/spmi-pmic-arb.c        | 87 ++++++++++-------------------
 drivers/spmi/spmi.c                 |  6 +-
 include/linux/spmi.h                |  3 +
 7 files changed, 116 insertions(+), 103 deletions(-)
 create mode 100644 drivers/spmi/devres.c

-- 
2.42.0.rc1.204.g551eb34607-goog


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

end of thread, other threads:[~2023-10-24  2:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-24 10:40 [PATCH 0/5] spmi: Add and use managed resource helpers Fei Shao
2023-08-24 10:40 ` [PATCH 1/5] spmi: Introduce device-managed functions Fei Shao
2023-09-13  9:11   ` AngeloGioacchino Del Regno
2023-08-24 10:40 ` [PATCH 2/5] spmi: Use devm_spmi_controller_alloc() Fei Shao
2023-09-13  9:11   ` AngeloGioacchino Del Regno
2023-08-24 10:40 ` [PATCH 3/5] spmi: mtk-pmif: Reorder driver remove sequence Fei Shao
2023-09-13  9:11   ` AngeloGioacchino Del Regno
2023-08-24 10:40 ` [PATCH 4/5] spmi: hisi-spmi-controller: Use devm_spmi_controller_add() Fei Shao
2023-08-24 10:40 ` [PATCH 5/5] spmi: Return meaningful errors in spmi_controller_alloc() Fei Shao
2023-10-24  2:02 ` [PATCH 0/5] spmi: Add and use managed resource helpers Stephen Boyd

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

Powered by JetHome