From patchwork Sun Jan 15 13:15:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akinobu Mita X-Patchwork-Id: 9517403 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1E187601DA for ; Sun, 15 Jan 2017 13:16:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 154A0283FB for ; Sun, 15 Jan 2017 13:16:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0A58F283FF; Sun, 15 Jan 2017 13:16:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A3ACE283FB for ; Sun, 15 Jan 2017 13:16:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751096AbdAONQK (ORCPT ); Sun, 15 Jan 2017 08:16:10 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36245 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751077AbdAONQK (ORCPT ); Sun, 15 Jan 2017 08:16:10 -0500 Received: by mail-pf0-f196.google.com with SMTP id 19so1720278pfo.3; Sun, 15 Jan 2017 05:16:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=eZZ6xGcrvtxR66gTVxnN+SlSttMCMbbWp4MuqVeYWqc=; b=ZkEX2cg2UvclPuXJeg6KphPWlpPXIYv0d7kW3Ame5/HoiEG+QRsA3vlgEhhlhnoWS3 spUAqC7kMvOPD3/vrz3sotNyk8AJM16lYWC2XR8H2h10Zo4o+fOggfgEABILPfRRaoJp onygwc/azhaC+h0fAZhkLdh1B5hHkOnoA2XgubuWX1/5qabWL+bw2K74P95y8Y+dzd2T bNoDjg8VFjD/DPTAZy+jTWsZkvKTSvHreeokRBScUuJZ5PcDya8nL9wITovWMPrs3vHa 4aafHd02a4VI8GYyrxKOvPOJG4G0+WFBWmdFDl4Hp8agvt7+71PFOVGVakwg5PQdzjpb BZDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=eZZ6xGcrvtxR66gTVxnN+SlSttMCMbbWp4MuqVeYWqc=; b=J0TzY0NYfxyVIqzoLB2aTF2zGmDCYIXbOOuHEaWpobLeK48czxEPns2XL/oJtV2KNQ q3b8wFPhGMtjURmMgNgPFN3mN5BOmnhWhK07P/bCxNq9WXjkG3r4C3ND+DMzYHI20LIj wpvO8vImi1CYZUjtS/YvXvVOojVJShDa4zz1vtOI0xPs6ak8gyb9KlEYrNsDeUWUetNt ceO7Qk10042s9la2zi8CjlvzAjKVrcAdGE3DRdtMCOSYOy0VZSvL3hHhKOczCqj1goY5 7Iolnz/O91f5k3lS9iRMQwsdEZRWJqz/MiujHfiyBJg0w7hZxKwjIm03IMbRGuYBcYiN nUcg== X-Gm-Message-State: AIkVDXICGDFAcde2IcoIBS8qmVDWes+dqEPUcTCYwSpYPfL6fz1Vry8Pamt5ahhtCNP0FA== X-Received: by 10.84.241.207 with SMTP id t15mr8235542plm.136.1484486169187; Sun, 15 Jan 2017 05:16:09 -0800 (PST) Received: from localhost.localdomain ([240f:4:c2bc:1:9509:afdd:5ccb:93b]) by smtp.gmail.com with ESMTPSA id n70sm10038237pfg.34.2017.01.15.05.16.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 15 Jan 2017 05:16:08 -0800 (PST) From: Akinobu Mita To: linux-input@vger.kernel.org, devicetree@vger.kernel.org Cc: Akinobu Mita , Dmitry Torokhov Subject: [PATCH v2 3/5] Input: mpr121 - set missing event capability Date: Sun, 15 Jan 2017 22:15:42 +0900 Message-Id: <1484486144-27947-4-git-send-email-akinobu.mita@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1484486144-27947-1-git-send-email-akinobu.mita@gmail.com> References: <1484486144-27947-1-git-send-email-akinobu.mita@gmail.com> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This driver reports misc scan input events on the sensor's status register changes. But the event capability for them was not set in the device initialization, so these events were ignored. This change adds the missing event capability. Cc: Dmitry Torokhov Signed-off-by: Akinobu Mita --- * No changes from v1 drivers/input/keyboard/mpr121_touchkey.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/keyboard/mpr121_touchkey.c b/drivers/input/keyboard/mpr121_touchkey.c index 90be99d..2558c60 100644 --- a/drivers/input/keyboard/mpr121_touchkey.c +++ b/drivers/input/keyboard/mpr121_touchkey.c @@ -230,6 +230,7 @@ static int mpr_touchkey_probe(struct i2c_client *client, input_dev->id.bustype = BUS_I2C; input_dev->dev.parent = &client->dev; input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REP); + input_set_capability(input_dev, EV_MSC, MSC_SCAN); input_dev->keycode = mpr121->keycodes; input_dev->keycodesize = sizeof(mpr121->keycodes[0]);