From patchwork Thu Sep 20 01:49:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 10606799 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A03B7913 for ; Thu, 20 Sep 2018 01:47:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 842072CB41 for ; Thu, 20 Sep 2018 01:47:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 772E02CB50; Thu, 20 Sep 2018 01:47:13 +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=-5.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, URIBL_DBL_ABUSE_MALW 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 211B82CB41 for ; Thu, 20 Sep 2018 01:47:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726123AbeITH14 (ORCPT ); Thu, 20 Sep 2018 03:27:56 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:43520 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726006AbeITH1z (ORCPT ); Thu, 20 Sep 2018 03:27:55 -0400 Received: by mail-pf1-f195.google.com with SMTP id j26-v6so3546634pfi.10 for ; Wed, 19 Sep 2018 18:47:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=E6zcIw9zQ5bCQE64THbvHJveHe9wTWSLs4jU/7WjM7Y=; b=Hp0ByJ3wyin48Yr7ImhmijYfBNSpuhBuqaP8YFlyuCtaASe7LzsoZY9Q4drTdTrIdp ipfeMBu8EBzzjqsZl4RGly1qv2tA6lfPfBsQQcd8tvt8G/VGLvCKsjkrWzM7gdLW0qNH AX+0uqeQTF1y3CfDcbJw+5bLMpdhFtPGMxvVk= 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; bh=E6zcIw9zQ5bCQE64THbvHJveHe9wTWSLs4jU/7WjM7Y=; b=SV2K7QxoohRAA5uzQ//aH+AbGHwKrM8RvqYkrwtAYMwMY/orfx0Ogsaz5Z3VjBSHR2 abASDjuY+tTE/AyhSn9hre+hTiLGs/fw8DrMPrAGHi5phBKeEPUp/oPBpj6iWuNKlhZl Akvn/crwg5N53rf9ewLyaGcm7zsPdnV17dZizL7XtnwHKruebo2Ln1PffvspSgjrVQlx DNbUbtH+jvEVw/h4vas0YTd8q5DRbtb9/Xwmxdmmc2p52G34b8Vg5NKHq4pEDh2sogOs Bv7lAcPHDB2E0NVI/iWVFAX4QD5+Jur6XE44Xi+UOS6gcBxHMD+Imhwn3ozUB3z5oqFW D6nA== X-Gm-Message-State: APzg51A91PVVV6+LDUunpY1WxrhsrvQddvlBOKShHrLJeJ4m3iZdMy91 sBTIcl36bxsXT6SVJmISE2esaw== X-Google-Smtp-Source: ANB0VdapX4mo2iYeEgPwgq9WsVI06BWgIXhJcP89uolWDXH0MT3N19h/iLvl65zE0leVuOVm5k4/4g== X-Received: by 2002:a62:5047:: with SMTP id e68-v6mr38112206pfb.157.1537408031833; Wed, 19 Sep 2018 18:47:11 -0700 (PDT) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id m15-v6sm67227308pfk.149.2018.09.19.18.47.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Sep 2018 18:47:11 -0700 (PDT) From: Bjorn Andersson To: Dmitry Torokhov , Rob Herring , Mark Rutland , Vinod Koul , Bjorn Andersson Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] Input: pm8941-pwrkey - Add pms405 pwrkey support Date: Wed, 19 Sep 2018 18:49:28 -0700 Message-Id: <20180920014928.15422-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.18.0 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 From: Vinod Koul Update the binding and driver for pms405 pwrkey. Signed-off-by: Vinod Koul Signed-off-by: Bjorn Andersson --- Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt | 1 + drivers/input/misc/pm8941-pwrkey.c | 1 + 2 files changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt b/Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt index 34ab5763f494..736fba3bad54 100644 --- a/Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt +++ b/Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt @@ -8,6 +8,7 @@ PROPERTIES Definition: must be one of: "qcom,pm8941-pwrkey" "qcom,pm8941-resin" + "qcom,pms405-pwrkey" - reg: Usage: required diff --git a/drivers/input/misc/pm8941-pwrkey.c b/drivers/input/misc/pm8941-pwrkey.c index 48153e0ca19a..fccf63263c1c 100644 --- a/drivers/input/misc/pm8941-pwrkey.c +++ b/drivers/input/misc/pm8941-pwrkey.c @@ -317,6 +317,7 @@ static const struct pm8941_data resin_data = { static const struct of_device_id pm8941_pwr_key_id_table[] = { { .compatible = "qcom,pm8941-pwrkey", .data = &pwrkey_data }, { .compatible = "qcom,pm8941-resin", .data = &resin_data }, + { .compatible = "qcom,pms405-pwrkey", .data = &pwrkey_data }, { } }; MODULE_DEVICE_TABLE(of, pm8941_pwr_key_id_table);