[PATCH 0/9] regulator/core: Trivial cleanups and improvements
From: Michał Mirosław
Date: Wed Aug 30 2023 - 18:09:23 EST
This is a random set of cleanups, dead code removal and minor optimizations.
Most patches are applicable independently; those that aren't share a bit
of context, but are nevertheless logically separate.
Michał Mirosław (9):
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/core: make regulator_class const
drivers/regulator/core.c | 93 ++++++++++---------------------
drivers/regulator/internal.h | 2 +-
include/linux/regulator/driver.h | 1 -
include/linux/regulator/machine.h | 7 +--
4 files changed, 33 insertions(+), 70 deletions(-)
--
2.39.2