From a309409b03aafd44cbf75eef6cbd57ca42a9dd00 Mon Sep 17 00:00:00 2001 From: Abir Ghosh Date: Fri, 28 Feb 2020 10:14:57 +0530 Subject: [PATCH] qbt_handler: Change return type of qbt_poll Add changes to make touch events notifier static. Change the return type of qbt_poll from unsigned int to __poll_t. Change-Id: Ib43f6bb5ba77cb48d1e47e1ecd1d5b810f7c9159 Signed-off-by: Abir Ghosh --- drivers/soc/qcom/qbt_handler.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/soc/qcom/qbt_handler.c b/drivers/soc/qcom/qbt_handler.c index f8157555687a..522c3c80b574 100644 --- a/drivers/soc/qcom/qbt_handler.c +++ b/drivers/soc/qcom/qbt_handler.c @@ -203,7 +203,7 @@ static int qfp_touch_event_notify(struct notifier_block *self, return NOTIFY_OK; } -struct notifier_block _input_event_notifier = { +static struct notifier_block _input_event_notifier = { .notifier_call = qfp_touch_event_notify, }; @@ -567,11 +567,11 @@ static ssize_t qbt_read(struct file *filp, char __user *ubuf, return num_bytes; } -static unsigned int qbt_poll(struct file *filp, +static __poll_t qbt_poll(struct file *filp, struct poll_table_struct *wait) { struct qbt_drvdata *drvdata; - unsigned int mask = 0; + __poll_t mask = 0; int minor_no = -1; if (!filp || !filp->private_data) {