public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] soc: mediatek: pwrap: Constify some data and other improvements
@ 2024-06-29  9:19 Christophe JAILLET
  2024-06-29  9:19 ` [PATCH 1/4] soc: mediatek: pwrap: Constify struct pmic_wrapper_type Christophe JAILLET
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Christophe JAILLET @ 2024-06-29  9:19 UTC (permalink / raw)
  To: matthias.bgg, angelogioacchino.delregno, fparent, fchiby, s.hauer
  Cc: linux-arm-kernel, linux-mediatek, linux-kernel, kernel-janitors,
	Christophe JAILLET

This series is motivated by patch 1. The 3 other patches are some
additionnal goodies spotted while looking at the code.

Patch 1 constifies struct pmic_wrapper_type to move some data to a
read-only section, in order to increase safety.

Patch 2 does the same for some int arrays. This helps move about 7 ko of
data to a read-only section. Not that bad!

Patch 3 simplifies code related to clk management. It also fixes an
issue if the driver is unloaded.

Patch 4 is just a clean-up of some messages.

Christophe JAILLET (4):
  soc: mediatek: pwrap: Constify struct pmic_wrapper_type
  soc: mediatek: pwrap: Constify some struct int[]
  soc: mediatek: pwrap: Use devm_clk_get_[optional_]enabled()
  soc: mediatek: pwrap: Simplify some error messages

 drivers/soc/mediatek/mtk-pmic-wrap.c | 125 +++++++++------------------
 1 file changed, 43 insertions(+), 82 deletions(-)

-- 
2.45.2


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

end of thread, other threads:[~2024-07-03 13:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-29  9:19 [PATCH 0/4] soc: mediatek: pwrap: Constify some data and other improvements Christophe JAILLET
2024-06-29  9:19 ` [PATCH 1/4] soc: mediatek: pwrap: Constify struct pmic_wrapper_type Christophe JAILLET
2024-07-03 13:02   ` AngeloGioacchino Del Regno
2024-06-29  9:19 ` [PATCH 2/4] soc: mediatek: pwrap: Constify some struct int[] Christophe JAILLET
2024-07-03 13:02   ` AngeloGioacchino Del Regno
2024-06-29  9:19 ` [PATCH 3/4] soc: mediatek: pwrap: Use devm_clk_get_[optional_]enabled() Christophe JAILLET
2024-07-03 13:02   ` AngeloGioacchino Del Regno
2024-06-29  9:19 ` [PATCH 4/4] soc: mediatek: pwrap: Simplify some error messages Christophe JAILLET

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