sm8450-common: Use kernel provided xiaomi_touch.h
Change-Id: Ib235946a1233b4965fc4a90c9b2b01b7644775e9
This commit is contained in:
@@ -16,9 +16,9 @@
|
||||
#include <thread>
|
||||
|
||||
#include <display/drm/mi_disp.h>
|
||||
#include <linux/xiaomi_touch.h>
|
||||
|
||||
#include "UdfpsHandler.h"
|
||||
#include "xiaomi_touch.h"
|
||||
|
||||
#define COMMAND_NIT 10
|
||||
#define TARGET_BRIGHTNESS_OFF 0
|
||||
@@ -33,12 +33,8 @@
|
||||
#define PARAM_FOD_PRESSED 1
|
||||
#define PARAM_FOD_RELEASED 0
|
||||
|
||||
#define TOUCH_DEV_PATH "/dev/xiaomi-touch"
|
||||
#define TOUCH_MAGIC 'T'
|
||||
#define TOUCH_IOC_SET_CUR_VALUE _IO(TOUCH_MAGIC, SET_CUR_VALUE)
|
||||
#define TOUCH_IOC_GET_CUR_VALUE _IO(TOUCH_MAGIC, GET_CUR_VALUE)
|
||||
|
||||
#define DISP_FEATURE_PATH "/dev/mi_display/disp_feature"
|
||||
#define TOUCH_DEV_PATH "/dev/xiaomi-touch"
|
||||
|
||||
#define FOD_PRESS_STATUS_PATH "/sys/class/touch/touch_dev/fod_press_status"
|
||||
|
||||
|
Reference in New Issue
Block a user