mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-09-18 23:09:29 +02: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 <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>
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__ */
|