Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a309409b authored by Abir Ghosh's avatar Abir Ghosh
Browse files

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: default avatarAbir Ghosh <abirg@codeaurora.org>
parent bdd1662e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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) {