Files
android_kernel_motorola_sm6225/include/linux/mmi_relay.h
T
Yonghua Yan c7dabf3b12 Add LPD device notify support in mmi_relay
Add LPD notify support in mmi_relay.
Add LPD notify event type definition.

Change-Id: Ib2cca69bacb3de8a9321b9df70331cf5471e793e
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2450302
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-12-06 05:20:26 -06:00

38 lines
754 B
C

#ifndef __MMI_RELAY_H__
#define __MMI_RELAY_H__
#include <linux/notifier.h>
/*
* Notify device event type definitions
*/
enum {
NOTIFY_EVENT_LPD_STATUS = 1,
NOTIFY_EVENT_TUD_STATUS = 2,
};
typedef enum notifier_type {
ATOMIC,
BLOCKING,
NUM_TYPES,
}notifier_t;
typedef enum notifier_dev {
LCD,
FPS,
MMI_RELAY,
LPD,
NUM_DEVS,
}notifier_d;
enum mmi_relay_event {
RELAY_NOTIFY_REGISTER,
RELAY_NOTIFY_UNREGISTER,
};
extern int relay_notifier_fire(notifier_t type, notifier_d dev, unsigned long val, void *v);
extern int relay_register_action(notifier_t type, notifier_d dev, struct notifier_block * nb);
extern int relay_unregister_action(notifier_t type, notifier_d dev, struct notifier_block * nb);
#endif