30 lines
604 B
C
30 lines
604 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (c) 2019 MediaTek Inc.
|
|
*/
|
|
|
|
/*
|
|
* Definitions for ALSPS als/ps sensor chip.
|
|
*/
|
|
#ifndef __ALSPSHUB_H__
|
|
#define __ALSPSHUB_H__
|
|
|
|
#include <linux/ioctl.h>
|
|
|
|
|
|
/*ALSPS related driver tag macro*/
|
|
#define ALSPS_SUCCESS 0
|
|
#define ALSPS_ERR_I2C -1
|
|
#define ALSPS_ERR_STATUS -3
|
|
#define ALSPS_ERR_SETUP_FAILURE -4
|
|
#define ALSPS_ERR_GETGSENSORDATA -5
|
|
#define ALSPS_ERR_IDENTIFICATION -6
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
enum ALSPS_NOTIFY_TYPE {
|
|
ALSPS_NOTIFY_PROXIMITY_CHANGE = 0,
|
|
};
|
|
|
|
#endif
|
|
|