From patchwork Sat Dec 22 15:54:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Shiyan X-Patchwork-Id: 10741335 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 67BC5161F for ; Sat, 22 Dec 2018 16:49:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 56E9A289F7 for ; Sat, 22 Dec 2018 16:49:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4A98828A04; Sat, 22 Dec 2018 16:49:42 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 E4570289F7 for ; Sat, 22 Dec 2018 16:49:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387843AbeLVQtl (ORCPT ); Sat, 22 Dec 2018 11:49:41 -0500 Received: from fallback19.mail.ru ([185.5.136.251]:49234 "EHLO fallback19.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725802AbeLVQtl (ORCPT ); Sat, 22 Dec 2018 11:49:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Message-Id:Date:Subject:Cc:To:From; bh=7wITvn0vd2RumLk+6RkHS3ivkYJBc/bGfZeveTjLVq4=; b=CiW/cThU4XjlOsleACl1FodMOKJcIFJTBRdL9259t5/68+EViiQWMQHkrFC0m4/Fo+e/FtFBi1R5VBBVfLD9AEZsin9jhO21MeRrfZqk+7HGnzTqZRHqfz9ElZwuE7wCHhtBlIfMuu14g5TXP2PDf695QzLqwEYxz0fv0cry4kc=; Received: from [10.161.64.54] (port=51684 helo=smtp46.i.mail.ru) by fallback19.m.smailru.net with esmtp (envelope-from ) id 1gajbq-0008P1-AR for linux-input@vger.kernel.org; Sat, 22 Dec 2018 18:54:38 +0300 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Message-Id:Date:Subject:Cc:To:From; bh=7wITvn0vd2RumLk+6RkHS3ivkYJBc/bGfZeveTjLVq4=; b=CiW/cThU4XjlOsleACl1FodMOKJcIFJTBRdL9259t5/68+EViiQWMQHkrFC0m4/Fo+e/FtFBi1R5VBBVfLD9AEZsin9jhO21MeRrfZqk+7HGnzTqZRHqfz9ElZwuE7wCHhtBlIfMuu14g5TXP2PDf695QzLqwEYxz0fv0cry4kc=; Received: by smtp46.i.mail.ru with esmtpa (envelope-from ) id 1gajbo-000523-Me; Sat, 22 Dec 2018 18:54:36 +0300 From: Alexander Shiyan To: linux-input@vger.kernel.org Cc: Dmitry Torokhov , Alexander Shiyan Subject: [PATCH 1/2] input: clps711x-keypad: Switch to use syscon_regmap_lookup_by_phandle() Date: Sat, 22 Dec 2018 18:54:34 +0300 Message-Id: <20181222155434.8104-1-shc_work@mail.ru> X-Mailer: git-send-email 2.10.2 X-77F55803: 260C666A7D66B36A5A78504BD2AC29419868B496DAF47A9F7FDCD120B3DB19A1842DB18B1CCEAE40588B8AA45539DCE1 X-7FA49CB5: 0D63561A33F958A51E6CBE420327268715D5B3610659C1580D7597EF812270B48941B15DA834481FA18204E546F3947CA9FF340AA05FB58CF6B57BC7E64490618DEB871D839B7333395957E7521B51C2545D4CF71C94A83E9FA2833FD35BB23D27C277FBC8AE2E8B3A703B70628EAD7BA471835C12D1D977C4224003CC8364767815B9869FA544D8D32BA5DBAC0009BE9E8FC8737B5C2249E20791DD86E535D73AA81AA40904B5D9CF19DD082D7633A0E7DDDDC251EA7DABD81D268191BDAD3D78DA827A17800CE79C0DA0AD91AF617ECD04E86FAF290E2D40A5AABA2AD3711975ECD9A6C639B01B78DA827A17800CE7FB59562F776E102FC45AEDA2821AE80275ECD9A6C639B01B4E70A05D1297E1BBC6867C52282FAC85D9B7C4F32B44FF57285124B2A10EEC6C00306258E7E6ABB4E4A6367B16DE6309 X-Mailru-Sender: 139A7956A63CACCF2A18077BC60D2445648DC61C3AF7D45E01E0EE37E92C6BB3C33B2062B2EF086B6B3B2BD4812BFD4DC77752E0C033A69E93554C27080790AB3B25A7FBAAF806F0AE208404248635DF X-Mras: OK X-77F55803: 669901E4625912A97F9F52485CB584D7271FD7DF62800FDC1EE2D14768D1291DB29000989F8AB6A3FD459ACFBD9BFCCB356F6AB6124E8DD0 X-7FA49CB5: 0D63561A33F958A543FE0FE3E18DF6C5F90877AFCC135A0A6365B2346D0CB40A8941B15DA834481FA18204E546F3947CD2DCF9CF1F528DBCF6B57BC7E64490618DEB871D839B7333395957E7521B51C2545D4CF71C94A83E9FA2833FD35BB23D27C277FBC8AE2E8B974A882099E279BDA471835C12D1D977C4224003CC836476C0CAF46E325F83A50BF2EBBBDD9D6B0F05F538519369F3743B503F486389A921A5CC5B56E945C8DA X-Mailru-Sender: A5480F10D64C9005C3FADA55C8765CC31BBBCC26CC92C6E7B29000989F8AB6A3F1FEA02A07AA46D63786569BE0651809D50E20E2BC48EF5AFF3C6AF3E48A3A73EAB4BC95F72C04283CDA0F3B3F5B9367 X-Mras: OK 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 As mentioned in the patch bdb0066df96e ("mfd: syscon: Decouple syscon interface from platform devices"), we need to switch to using the syscon_regmap_lookup_by_phandle() function. This patch makes this change. Signed-off-by: Alexander Shiyan --- drivers/input/keyboard/clps711x-keypad.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/input/keyboard/clps711x-keypad.c b/drivers/input/keyboard/clps711x-keypad.c index e319f74..f7f49da 100644 --- a/drivers/input/keyboard/clps711x-keypad.c +++ b/drivers/input/keyboard/clps711x-keypad.c @@ -100,8 +100,7 @@ static int clps711x_keypad_probe(struct platform_device *pdev) if (!priv) return -ENOMEM; - priv->syscon = - syscon_regmap_lookup_by_compatible("cirrus,ep7209-syscon1"); + priv->syscon = syscon_regmap_lookup_by_phandle(np, "syscon"); if (IS_ERR(priv->syscon)) return PTR_ERR(priv->syscon);