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

Commit 98a2ca42 authored by Yaniv Gardi's avatar Yaniv Gardi
Browse files

QBT1000: modify input device to support all key events



This change enables all KEY events instead of just the KEY_HOMEPAGE
event.

Change-Id: Ia6165af52c855dc6d5d4628c6d724e52ee8a3299
Signed-off-by: default avatarYaniv Gardi <ygardi@codeaurora.org>
parent 138036dc
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
/* Copyright (c) 2015, The Linux Foundation. All rights reserved.
/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -1006,8 +1006,10 @@ int qbt1000_create_input_device(struct qbt1000_drvdata *drvdata)

	drvdata->in_dev->evbit[0] = BIT_MASK(EV_KEY) |  BIT_MASK(EV_ABS);
	drvdata->in_dev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH);
	drvdata->in_dev->keybit[BIT_WORD(KEY_HOMEPAGE)] =
		BIT_MASK(KEY_HOMEPAGE);

	/* enable all 256 key events except to key 00 which is "KEY_RESERVED" */
	memset(drvdata->in_dev->keybit, 0xFE,
		   BIT_WORD(0x100)*sizeof(unsigned long));

	input_set_abs_params(drvdata->in_dev, ABS_X,
			     0,