mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 12:53:14 +01:00
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 <[email protected]> Assisted-by: Antigravity:gemini-3.5-flash Signed-off-by: Dmitry Torokhov <[email protected]> Reviewed-by: Matti Vaittinen <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Lee Jones <[email protected]>
13 lines
335 B
C
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__ */
|