From patchwork Wed Jan 11 17:42:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akinobu Mita X-Patchwork-Id: 9510821 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 2A1BB6075C for ; Wed, 11 Jan 2017 17:42:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1BD78284E6 for ; Wed, 11 Jan 2017 17:42:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1052E285BB; Wed, 11 Jan 2017 17:42:57 +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.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, 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 AE106284E6 for ; Wed, 11 Jan 2017 17:42:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937654AbdAKRmy (ORCPT ); Wed, 11 Jan 2017 12:42:54 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:34667 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936772AbdAKRmw (ORCPT ); Wed, 11 Jan 2017 12:42:52 -0500 Received: by mail-pg0-f67.google.com with SMTP id b1so54273188pgc.1; Wed, 11 Jan 2017 09:42:51 -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=h1IYb2H6uN14ek/nZZayZRZBW/RZCRuFbgLNW+ElZ20=; b=iEVLCvkoliIN5HMuBwqHWIVFurJZawhJo1aQexxTqyj8DzMDR4Yh+K/4Re8hIF0ILz HM8A3EeKKbKmKGV948LPdKmDl0mKZbzf9eh0PLeytol6iCALiLTPH5vFzcgho54m4dKa 3yp1GE5bG1X6LoY+na63qtYqDOo8WMgVXTElGEuBGjXZmvWL6Sqmsmp7LlKnFLOw29FC pNyMiZVL1sf8ZqJY2UJB7MFNt4P8SoYAq5IT0P9BJjanjFlteLj70ZtvpWHg0HuXdclt gnGWS+evh4XHcqQNI7ureNxG+y90bHiLuPXDoDitA4iTS23WXHGTUmSxiz0AHpawcDXM ltzQ== 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=h1IYb2H6uN14ek/nZZayZRZBW/RZCRuFbgLNW+ElZ20=; b=gDn24LZtNzSzlHGTt4YOLa2whgR3rjNamTgJ1izvTX5qOOZsGXleCmgzLNYJEGr2Xl B+3N9jU6M7vqEjP4vg/i2CljFc9EtEWf5cijOstWsXy4dp4vv+h6Oq///xIx5mh32lKD rNqhSLT/9pUf1rUTv7c6jzWsxeJX9PhT3d9PJoAouSO8HV68Kbs1qjaOn9bXc36pSxvm arKz/xNsk1ojdGFO2V1L4T8gbisTEoS13CYyP0K1eP0I5EliTBE0vExbcRhnZ+2G5Q/B BZ+MF3LhBnkHVWjTSQDT+csaFrmDEk+nDxSFSXhg6OHidlipn28nKecR7Mj+olMvvq9v b0GQ== X-Gm-Message-State: AIkVDXIIYDV/kkBiFw+wg5MDm4whvYyTG6ysmc4VbqZidudz16dXzhDLKRDFGJpDYa1YwA== X-Received: by 10.98.89.21 with SMTP id n21mr11717151pfb.163.1484156571124; Wed, 11 Jan 2017 09:42:51 -0800 (PST) Received: from localhost.localdomain ([240f:4:c2bc:1:9509:afdd:5ccb:93b]) by smtp.gmail.com with ESMTPSA id d69sm15350651pfd.11.2017.01.11.09.42.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 Jan 2017 09:42:50 -0800 (PST) From: Akinobu Mita To: linux-input@vger.kernel.org, devicetree@vger.kernel.org Cc: Akinobu Mita , Dmitry Torokhov Subject: [PATCH 2/5] Input: mpr121 - set missing event capability Date: Thu, 12 Jan 2017 02:42:26 +0900 Message-Id: <1484156549-26585-3-git-send-email-akinobu.mita@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1484156549-26585-1-git-send-email-akinobu.mita@gmail.com> References: <1484156549-26585-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 --- 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 d40e0d1..a2c5305 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]);