Skip to content

rohm-bdi718x7/71828: Use software nodes for gpio-keys

Dmitry Torokhov lkml 4 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected] change-id 20260313-rohm-software-nodes-0b4a3d36128c

Versions newest first

  1. v5 Latest2 patches 10 repliesApplied
  2. v42 patches 11 repliesSuperseded
  3. v32 patches 7 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v22 patches3 repliesSuperseded

Changes in v5 from the cover letter

Addressed Lee's comments:
- moved static constants out of function to module level
- added #defines for nodes' indexes
- adjusted error message
- renamed "error" to "ret"
- dropped unneeded comments
- Link to v4: https://patch.msgid.link/[email protected]

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/2mfd: rohm-bd71828: Use software nodes for gpio-keysdrivers/mfd/rohm-bd71828.c+93 -320 replies
2/2mfd: rohm-bd718x7: Use software nodes for gpio-keysdrivers/mfd/rohm-bd718x7.c+90 -330 replies

Reviews trailers per patch

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

Read the v5 thread

Cover letter [PATCH v5 0/2] rohm-bdi718x7/71828: Use software nodes for gpio-keys

Now that gpio-keys can use platform resources to identify interrupts assigned to buttons we can convert ROHM power buttons to use software nodes and device properties for configuration, removing the need to use platform data.

---
Changes in v5:
Addressed Lee's comments:
- moved static constants out of function to module level
- added #defines for nodes' indexes
- adjusted error message
- renamed "error" to "ret"
- dropped unneeded comments
- Link to v4: https://patch.msgid.link/[email protected]

Changes in v4:
- avoid using compound literals in assignments
- Link to v3: https://patch.msgid.link/[email protected]

Changes in v3:
- Stopped mixing code and variable declarations, use more temps
- Moved assignment to irq_domain closer to where is is being used
- Added missing SOB
- Link to v2: https://patch.msgid.link/[email protected]

v2:
- dropped patch to gpio-keys as it is in the mainline now
- reworked the both drivers to dynamically allocate per-device software nodes

v1:
https://lore.kernel.org/r/[email protected]/

---
Dmitry Torokhov (2):
mfd: rohm-bd71828: Use software nodes for gpio-keys
mfd: rohm-bd718x7: Use software nodes for gpio-keys

 drivers/mfd/rohm-bd71828.c | 125 +++++++++++++++++++++++++++++++++------------
 drivers/mfd/rohm-bd718x7.c | 123 ++++++++++++++++++++++++++++++++------------
 2 files changed, 183 insertions(+), 65 deletions(-)

---
base-commit: ec039126b7fac4e3af35ebccaa7c6f9b6875ba81
change-id: 20260313-rohm-software-nodes-0b4a3d36128c

Thanks.

Signature · 1 line
Dmitry