[PATCH 0/5] Few miscellaneous regulator improvements

From: Matti Vaittinen
Date: Thu Nov 18 2021 - 06:48:14 EST

Minor regulator improvemnts / fixes.

This is a collection of minor improvemnts done while developing drivers
for yet another ROHM PMIC. Please note that the new generic function
added in Patch 2 does currently have only one in-tree driver using it.
(call added in patch 3). I intended to post this with the set of patches
bringing support to a new PMIC - but it appears this new PMIC requires
one more HW-iteration - meaning it will be delayed probably by months.
It'd be easier for me to add this upstream now in order to avoid
rebasing/conflicts with other changes introduced meanwhile. Please let
me know if you don't think that's Ok.

Patch 1:
IRQ-helpers do not really need to map IRQ to specific notification in
cases when the sole purpose of an IRQ is to notify this specific error.
Allow omitting the IRQ mapping callback.

Patch 2:
The new PMIC I am writing drivers for does once again allow (base) voltage
to be changed when regulator is disabled. Create a generic function for this
as it seems ROHM keeps designing such outputs.

Patch 3:
Use this generic function with the bd71837/47/50

Patch 4 & 5:
kerneldoc updates.


Matti Vaittinen (5):
regulator: irq_helpers: Allow omitting map_event for simple IRQs
regulator: rohm-regulator: add helper for restricted voltage setting
regulator: bd718x7: Use rohm generic restricted voltage setting
regulator: Add units to limit documentation
regulator: Update protection IRQ helper docs

drivers/regulator/bd718x7-regulator.c | 29 ++------------
drivers/regulator/irq_helpers.c | 52 +++++++++++++++++++++++-
drivers/regulator/rohm-regulator.c | 16 ++++++++
include/linux/mfd/rohm-generic.h | 7 ++++
include/linux/regulator/driver.h | 58 ++++++++++++++++++++++-----
5 files changed, 126 insertions(+), 36 deletions(-)


Matti Vaittinen, Linux device drivers
ROHM Semiconductors, Finland SWDC
Kiviharjunlenkki 1E
90220 OULU

~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~
Simon says - in Latin please.
~~~ "non cogito me" dixit Rene Descarte, deinde evanescavit ~~~
Thanks to Simon Glass for the translation =]

Attachment: signature.asc
Description: PGP signature