Skip to content

regulator: Few constifications of static data

Krzysztof Kozlowski linux-arm-kernel linux-arm-msm linux-mediatek lkml 1 version In review

Get series with b4
b4 am [email protected] change-id 20240909-regulator-const-b70dc22450b0

Versions newest first

  1. v1 Latest17 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17regulator: da9052: Constify static datadrivers/regulator/da9052-regulator.c+11 -110 replies
2/17regulator: da9055: Constify static datadrivers/regulator/da9055-regulator.c+14 -140 replies
3/17regulator: da9063: Constify static datadrivers/regulator/da9063-regulator.c+1 -10 replies
4/17regulator: da9121: Constify static datadrivers/regulator/da9121-regulator.c+10 -100 replies
5/17regulator: da9211: Constify static datadrivers/regulator/da9211-regulator.c+1 -10 replies
6/17regulator: hi6421: Constify static datadrivers/regulator/hi6421-regulator.c+7 -70 replies
7/17regulator: hi6421v600: Constify static datadrivers/regulator/hi6421v600-regulator.c+5 -50 replies
8/17regulator: tps65023: Constify static datadrivers/regulator/tps65023-regulator.c+3 -30 replies
9/17regulator: max77826: Drop unused 'rdesc' in 'struct max77826_regulator_info'drivers/regulator/max77826-regulator.c+0 -20 replies
10/17regulator: max77826: Constify static datadrivers/regulator/max77826-regulator.c+1 -10 replies
11/17regulator: mtk-dvfsrc: Constify static datadrivers/regulator/mtk-dvfsrc-regulator.c+5 -50 replies
12/17regulator: pcap: Constify static datadrivers/regulator/pcap-regulator.c+6 -60 replies
13/17regulator: pfuze100: Constify static datadrivers/regulator/pfuze100-regulator.c+5 -50 replies
14/17regulator: qcom-refgen: Constify static datadrivers/regulator/qcom-refgen-regulator.c+2 -20 replies
15/17regulator: hi6421v530: Drop unused 'eco_microamp'drivers/regulator/hi6421v530-regulator.c+6 -100 replies
16/17regulator: hi6421v530: Use container_of and constify static datadrivers/regulator/hi6421v530-regulator.c+5 -60 replies
17/17regulator: max77650: Use container_of and constify static datadrivers/regulator/max77650-regulator.c+14 -170 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/17] regulator: Few constifications of static data

Hi,

Few cleanups (safer code), built tested. Last two patches should probably be tested.

Best regards,
Krzysztof

---
Krzysztof Kozlowski (17):
regulator: da9052: Constify static data
regulator: da9055: Constify static data
regulator: da9063: Constify static data
regulator: da9121: Constify static data
regulator: da9211: Constify static data
regulator: hi6421: Constify static data
regulator: hi6421v600: Constify static data
regulator: tps65023: Constify static data
regulator: max77826: Drop unused 'rdesc' in 'struct max77826_regulator_info'
regulator: max77826: Constify static data
regulator: mtk-dvfsrc: Constify static data
regulator: pcap: Constify static data
regulator: pfuze100: Constify static data
regulator: qcom-refgen: Constify static data
regulator: hi6421v530: Drop unused 'eco_microamp'
regulator: hi6421v530: Use container_of and constify static data
regulator: max77650: Use container_of and constify static data

 drivers/regulator/da9052-regulator.c      | 22 +++++++++++-----------
 drivers/regulator/da9055-regulator.c      | 28 ++++++++++++++--------------
 drivers/regulator/da9063-regulator.c      |  2 +-
 drivers/regulator/da9121-regulator.c      | 20 ++++++++++----------
 drivers/regulator/da9211-regulator.c      |  2 +-
 drivers/regulator/hi6421-regulator.c      | 14 +++++++-------
 drivers/regulator/hi6421v530-regulator.c  | 27 +++++++++++----------------
 drivers/regulator/hi6421v600-regulator.c  | 10 +++++-----
 drivers/regulator/max77650-regulator.c    | 31 ++++++++++++++-----------------
 drivers/regulator/max77826-regulator.c    |  4 +---
 drivers/regulator/mtk-dvfsrc-regulator.c  | 10 +++++-----
 drivers/regulator/pcap-regulator.c        | 12 ++++++------
 drivers/regulator/pfuze100-regulator.c    | 10 +++++-----
 drivers/regulator/qcom-refgen-regulator.c |  4 ++--
 drivers/regulator/tps65023-regulator.c    |  6 +++---
 15 files changed, 96 insertions(+), 106 deletions(-)

---
base-commit: fd9058d56c6de25c2d3215db4e2e950a7965ffd2
change-id: 20240909-regulator-const-b70dc22450b0

Best regards,

Signature · 1 line
Krzysztof Kozlowski <[email protected]>