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

Commit 6331add9 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "QBT1000: modify input device to support all key events"

parents e36414d7 98a2ca42
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,