mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/3] soc: mediatek: pwrap: Constify some data and other improvements
@ 2024-07-07  5:47 Christophe JAILLET
  2024-07-07  5:47 ` [PATCH v2 1/3] soc: mediatek: pwrap: Constify struct pmic_wrapper_type Christophe JAILLET
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Christophe JAILLET @ 2024-07-07  5:47 UTC (permalink / raw)
  To: matthias.bgg, angelogioacchino.delregno, fchiby, fparent, s.hauer
  Cc: linux-arm-kernel, linux-mediatek, linux-kernel, kernel-janitors,
	Christophe JAILLET

This series is motivated by patch 1. The 2 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.

Christophe JAILLET (3):
  soc: mediatek: pwrap: Constify struct pmic_wrapper_type
  soc: mediatek: pwrap: Constify some struct int[]
  soc: mediatek: pwrap: Use devm_clk_bulk_get_all_enable()

 drivers/soc/mediatek/mtk-pmic-wrap.c | 118 +++++++--------------------
 1 file changed, 30 insertions(+), 88 deletions(-)

-- 
2.45.2


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

end of thread, other threads:[~2024-07-30  8:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-07  5:47 [PATCH v2 0/3] soc: mediatek: pwrap: Constify some data and other improvements Christophe JAILLET
2024-07-07  5:47 ` [PATCH v2 1/3] soc: mediatek: pwrap: Constify struct pmic_wrapper_type Christophe JAILLET
2024-07-07  5:47 ` [PATCH v2 2/3] soc: mediatek: pwrap: Constify some struct int[] Christophe JAILLET
2024-07-07  5:47 ` [PATCH v2 3/3] soc: mediatek: pwrap: Use devm_clk_bulk_get_all_enable() Christophe JAILLET
2024-07-30  8:57 ` [PATCH v2 0/3] soc: mediatek: pwrap: Constify some data and other improvements AngeloGioacchino Del Regno

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

all inboxes | Powered by JetHome®