From 24a0ad84a02f372a707d812777557214481ead6e Mon Sep 17 00:00:00 2001 From: "makarand.karvekar" Date: Thu, 13 Jan 2011 13:49:02 -0600 Subject: [PATCH] input: touchscreen: qtouch: update palm suppression cfg params Change-Id: I74d99c06ee8b73a2ed59cbfe5264f2f7370c4e48 Signed-off-by: makarand.karvekar --- drivers/input/touchscreen/qtouch_obp_ts.c | 3 ++- include/linux/qtouch_obp_ts.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/qtouch_obp_ts.c b/drivers/input/touchscreen/qtouch_obp_ts.c index 3d239e5bc586..9f4b18c7f489 100644 --- a/drivers/input/touchscreen/qtouch_obp_ts.c +++ b/drivers/input/touchscreen/qtouch_obp_ts.c @@ -863,7 +863,8 @@ static int do_touch_multi_msg(struct qtouch_ts_data *ts, struct qtm_object *obj, return 1; } - down = !(msg->status & QTM_TOUCH_MULTI_STATUS_RELEASE); + down = !(msg->status & (QTM_TOUCH_MULTI_STATUS_RELEASE | + QTM_TOUCH_MULTI_STATUS_SUPPRESS)); ts->finger_data[finger].x_data = x; ts->finger_data[finger].y_data = y; diff --git a/include/linux/qtouch_obp_ts.h b/include/linux/qtouch_obp_ts.h index 022176259a89..4d506589dbb7 100644 --- a/include/linux/qtouch_obp_ts.h +++ b/include/linux/qtouch_obp_ts.h @@ -140,6 +140,7 @@ struct qtm_cmd_proc_msg { #define QTM_TOUCH_MULTI_STATUS_MOVE (1 << 4) #define QTM_TOUCH_MULTI_STATUS_VECTOR (1 << 3) #define QTM_TOUCH_MULTI_STATUS_AMPLITUDE (1 << 2) +#define QTM_TOUCH_MULTI_STATUS_SUPPRESS (1 << 1) struct qtm_touch_multi_msg { uint8_t report_id; uint8_t status; @@ -426,6 +427,7 @@ struct qtm_proci_palm_suppression_cfg { uint8_t large_obj_thr; uint8_t distance_thr; uint8_t sup_ext_to; + uint8_t strength; } __attribute__ ((packed)); /* QTM_OBJ_SPT_DIGITIZER T43 */ -- 2.34.1