Skip to content

soc: mediatek: pwrap: Constify some data and other improvements

Christophe JAILLET kernel-janitors linux-arm-kernel linux-mediatek lkml 2 versions – Applied

Status from this message: Applied to v6.11-next/soc, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyApplied
  2. v14 patches 3 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3soc: mediatek: pwrap: Constify struct pmic_wrapper_typedrivers/soc/mediatek/mtk-pmic-wrap.c+3 -30 replies
2/3soc: mediatek: pwrap: Constify some struct int[]drivers/soc/mediatek/mtk-pmic-wrap.c+15 -150 replies
3/3soc: mediatek: pwrap: Use devm_clk_bulk_get_all_enable()drivers/soc/mediatek/mtk-pmic-wrap.c+12 -700 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchAngeloGioacchino Del Regno
1/3R-b
2/3R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] soc: mediatek: pwrap: Constify some data and other improvements

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(-)
Signature · 1 line
2.45.2