Skip to content

regulator/core: Trivial cleanups and improvements

Michał Mirosław lkml llvm oe-kbuild-all 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest12 patches 3 repliesIn review
  2. v19 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- added regulator_dev.reg_data cleanup patches
- added a missing hunk in patch 6
- removed an extra change from patch 5
(Note: skipping changelogs in the patches, as the update has no relevant
material changes there)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12regulator/core: _regulator_get: simplify error returnsdrivers/regulator/core.c+6 -120 replies
2/12regulator/core: set_consumer_device_supply: remove `has_dev`drivers/regulator/core.c+1 -70 replies
3/12regulator/core: of_get_child_regulator: remove gotodrivers/regulator/core.c+6 -90 replies
4/12regulator/core: regulator_bulk_get: remove redundant NULL storesdrivers/regulator/core.c+1 -62 replies
5/12regulator/core: regulator_ena_gpio_ctrl: pull in ena_gpio state handlingdrivers/regulator/core.c+10 -130 replies
6/12regulator/core: remove regulator_init callbackdrivers/regulator/core.c include/linux/regulator/machine.h+2 -120 replies
7/12regulator/core: remove regulator_get_init_drvdata()drivers/regulator/core.c include/linux/regulator/driver.h+0 -70 replies
8/12regulator/core: set_consumer_device_supply: avoid copying const datadrivers/regulator/core.c+3 -30 replies
9/12regulator/tps68470: use rdev_get_drvdata()drivers/regulator/tps68470-regulator.c+2 -20 replies
10/12regulator/core: use dev_to_rdev() for device -> regulator_dev castdrivers/regulator/core.c+25 -260 replies
11/12regulator/core: remove regulator_get/set_drvdatadrivers/regulator/core.c include/linux/regulator/consumer.h+0 -380 replies
12/12regulator/core: use rdev->dev.driver_datadrivers/regulator/core.c include/linux/regulator/driver.h include/linux/regulator/machine.h+7 -181 reply

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 00/12] regulator/core: Trivial cleanups and improvements

This is a random set of cleanups, dead code removal and minor optimizations. This is a v2 of patchset sent long time ago, extended with a couple more entries (one including a driver cleanup to enable further changes). Tested on Tegra3 (ARM) and x86 devices.

v2:
- added regulator_dev.reg_data cleanup patches
- added a missing hunk in patch 6
- removed an extra change from patch 5
(Note: skipping changelogs in the patches, as the update has no relevant
material changes there)

Michał Mirosław (12):
regulator/core: _regulator_get: simplify error returns regulator/core: set_consumer_device_supply: remove has_dev regulator/core: of_get_child_regulator: remove goto regulator/core: regulator_bulk_get: remove redundant NULL stores regulator/core: regulator_ena_gpio_ctrl: pull in ena_gpio state
handling
regulator/core: remove regulator_init callback regulator/core: remove regulator_get_init_drvdata() regulator/core: set_consumer_device_supply: avoid copying const data regulator/tps68470: use rdev_get_drvdata() regulator/core: use dev_to_rdev() for device -> regulator_dev cast regulator/core: remove regulator_get/set_drvdata regulator/core: use rdev->dev.driver_data

 drivers/regulator/core.c               | 180 ++++++++-----------------
 drivers/regulator/tps68470-regulator.c |   4 +-
 include/linux/regulator/consumer.h     |  14 --
 include/linux/regulator/driver.h       |   9 +-
 include/linux/regulator/machine.h      |   7 +-
 5 files changed, 62 insertions(+), 152 deletions(-)
Signature · 1 line
2.39.2