Loading drivers/soc/qcom/qbt1000.c +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 Loading Loading @@ -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, Loading Loading
drivers/soc/qcom/qbt1000.c +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 Loading Loading @@ -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, Loading