Files
linux/drivers/mfd/rohm-pwrbutton.h
Dmitry Torokhov 1b86b4ef3a mfd: rohm: Factor out power button registration
Factor out the power button registration logic using software nodes
from rohm-bd718x7 and rohm-bd71828 drivers into a shared module
rohm-pwrbutton.

This reduces duplication and makes it easier to support other ROHM
PMICs with similar power button configurations.

Suggested-by: Lee Jones <lee@kernel.org>
Assisted-by: Antigravity:gemini-3.5-flash
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com>
Link: https://patch.msgid.link/akw4naN2Khjv8itB@google.com
Signed-off-by: Lee Jones <lee@kernel.org>
2026-07-30 14:33:08 +01:00

13 lines
335 B
C

/* SPDX-License-Identifier: GPL-2.0-or-later */
#ifndef __LINUX_MFD_ROHM_PWRBUTTON_H__
#define __LINUX_MFD_ROHM_PWRBUTTON_H__
struct device;
struct irq_domain;
int rohm_register_pwrbutton(struct device *dev, int irq, const char *name,
bool wakeup, struct irq_domain *irq_domain);
#endif /* __LINUX_MFD_ROHM_PWRBUTTON_H__ */