Messages in this thread | | | Date | Wed, 24 Nov 2021 09:16:18 +0200 | From | Matti Vaittinen <> | Subject | [PATCH v2 0/3] Provide event map helper for regulator drivers |
| |
This series provides an event map helper for regulator drivers and few other minor things.
Regulators which provide trivial notification IRQs can use generic IRQ mapper. Trivial in this context means the IRQ only informs one type of event, for one regulator.
I did these changes for a new ROHM PMIC - which unfortunately requires (hopefully only) one more HW revision before it is good to go. So there is no rush with merging the first two patches - but I decided to send them as they might lower the barrier of using the notifications with some non ROHM ICs. Please use your best judgement whether to include them at this phase or not.
The last patch is a fix for IRQ helper removing an unused struct member and I think it should be merged no matter what is the fate of the previous patches.
The series is based on regulator/for-next
---
Matti Vaittinen (3): regulators: Add regulator_err2notif() helper regulators: irq_helper: Provide helper for trivial IRQ notifications regulator: Drop unnecessary struct member
drivers/regulator/irq_helpers.c | 41 +++++++++++++++++++++++++++++++- include/linux/regulator/driver.h | 37 +++++++++++++++++++++++++++- 2 files changed, 76 insertions(+), 2 deletions(-)
-- 2.31.1
-- Matti Vaittinen, Linux device drivers ROHM Semiconductors, Finland SWDC Kiviharjunlenkki 1E 90220 OULU FINLAND
~~~ "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 =] [unhandled content-type:application/pgp-signature] | |