TP:
Error:
touchscreen_mmi.h:285:6: error: redefinition of 'panel_event'
kernel/msm-4.19/include/linux/panel_notifier.h:19:6: note: previous
definition is here enum panel_event {
Change-Id: Ia53d03c8ca03ecb8a62e679cb1e96aad64a9dcab
Reviewed-on: https://gerrit.mot.com/1992621
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
51 lines
1.3 KiB
C
51 lines
1.3 KiB
C
/* Copyright (c) 2016, Motorola Mobility, LLC.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
* only version 2 as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
*/
|
|
|
|
#ifndef __PANEL_NOTIFIER_H__
|
|
#define __PANEL_NOTIFIER_H__
|
|
|
|
#include <linux/notifier.h>
|
|
|
|
enum panel_event {
|
|
PANEL_EVENT_PRE_DISPLAY_OFF,
|
|
PANEL_EVENT_PRE_DISPLAY_ON,
|
|
PANEL_EVENT_DISPLAY_OFF,
|
|
PANEL_EVENT_DISPLAY_ON,
|
|
PANEL_EVENT_DISPLAY_ON_PREPARE,
|
|
};
|
|
|
|
#ifdef CONFIG_PANEL_NOTIFICATIONS
|
|
|
|
int panel_register_notifier(struct notifier_block *nb);
|
|
int panel_unregister_notifier(struct notifier_block *nb);
|
|
int panel_notify(unsigned int event, void *data);
|
|
|
|
#else
|
|
|
|
#include <linux/errno.h>
|
|
static inline int panel_register_notifier(struct notifier_block *nb)
|
|
{
|
|
return -ENOSYS;
|
|
}
|
|
static inline int panel_unregister_notifier(struct notifier_block *nb)
|
|
{
|
|
return -ENOSYS;
|
|
}
|
|
static inline int panel_notify(unsigned int event, void *data)
|
|
{
|
|
return -ENOSYS;
|
|
}
|
|
|
|
#endif
|
|
#endif
|