From patchwork Tue Oct 2 11:57:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Ardelean X-Patchwork-Id: 10623495 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 1592516B1 for ; Tue, 2 Oct 2018 11:58:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 572EA283E7 for ; Tue, 2 Oct 2018 11:58:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4B3F228477; Tue, 2 Oct 2018 11:58:29 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 AADCE283E7 for ; Tue, 2 Oct 2018 11:58:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727512AbeJBSlY (ORCPT ); Tue, 2 Oct 2018 14:41:24 -0400 Received: from mail-eopbgr710061.outbound.protection.outlook.com ([40.107.71.61]:56224 "EHLO NAM05-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727434AbeJBSlY (ORCPT ); Tue, 2 Oct 2018 14:41:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.onmicrosoft.com; s=selector1-analog-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=C2+ejJw1CtzUn5sYbXbhXlNdDpMNO6EsOnX3gh9nDZk=; b=GB3U6/HHOi38xyMJBv7tdbO3kbAkvzbs0UreB0Fgxm6xdZUwYH0zKwaKNowK4w6O+scu4lmeYc1C42UVdd5LRJpQb9ETaWFFrj8i07d5Y5l+Od3dhC3DLjP7EExWc1xlJ4Pr7M27+s6XJANMdjfqyvp0BSGC6B6O1wnY3ujbU54= Received: from CY4PR03CA0017.namprd03.prod.outlook.com (2603:10b6:903:33::27) by BN3PR0301MB1219.namprd03.prod.outlook.com (2a01:111:e400:403d::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1185.20; Tue, 2 Oct 2018 11:58:25 +0000 Received: from BN1BFFO11FD023.protection.gbl (2a01:111:f400:7c10::1:162) by CY4PR03CA0017.outlook.office365.com (2603:10b6:903:33::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1185.22 via Frontend Transport; Tue, 2 Oct 2018 11:58:25 +0000 Authentication-Results: spf=pass (sender IP is 137.71.25.57) smtp.mailfrom=analog.com; gmx.de; dkim=none (message not signed) header.d=none;gmx.de; dmarc=bestguesspass action=none header.from=analog.com; Received-SPF: Pass (protection.outlook.com: domain of analog.com designates 137.71.25.57 as permitted sender) receiver=protection.outlook.com; client-ip=137.71.25.57; helo=nwd2mta4.analog.com; Received: from nwd2mta4.analog.com (137.71.25.57) by BN1BFFO11FD023.mail.protection.outlook.com (10.58.144.86) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.1164.13 via Frontend Transport; Tue, 2 Oct 2018 11:58:24 +0000 Received: from NWD2HUBCAS7.ad.analog.com (nwd2hubcas7.ad.analog.com [10.64.69.107]) by nwd2mta4.analog.com (8.13.8/8.13.8) with ESMTP id w92BwOFo017422 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=OK); Tue, 2 Oct 2018 04:58:24 -0700 Received: from zeus.spd.analog.com (10.64.82.11) by NWD2HUBCAS7.ad.analog.com (10.64.69.107) with Microsoft SMTP Server id 14.3.301.0; Tue, 2 Oct 2018 07:58:25 -0400 Received: from saturn.analog.com ([10.50.1.244]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id w92BwKjH012604; Tue, 2 Oct 2018 07:58:21 -0400 From: Alexandru Ardelean To: , , , CC: , , Alexandru Ardelean Subject: [PATCH 1/4] staging: iio: ad5933: rename ext_clk_Hz -> ext_clk_hz Date: Tue, 2 Oct 2018 14:57:57 +0300 Message-ID: <20181002115800.12399-1-alexandru.ardelean@analog.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-ADIRoutedOnPrem: True X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:137.71.25.57;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(136003)(376002)(39860400002)(346002)(396003)(2980300002)(438002)(199004)(189003)(246002)(476003)(51416003)(7696005)(5660300001)(107886003)(36756003)(6666003)(4326008)(8936002)(8676002)(1076002)(106466001)(50226002)(53416004)(356003)(305945005)(7636002)(16586007)(106002)(54906003)(110136005)(316002)(2906002)(47776003)(186003)(77096007)(26005)(126002)(336012)(426003)(48376002)(478600001)(86362001)(2616005)(44832011)(50466002)(2201001)(486006);DIR:OUT;SFP:1101;SCL:1;SRVR:BN3PR0301MB1219;H:nwd2mta4.analog.com;FPR:;SPF:Pass;LANG:en;PTR:nwd2mail11.analog.com;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11FD023;1:K8mSjKfx1I+ejEe0Rv1erKSBNeTRTsHbUk+EDcalq/DXbiv32DM+qjKHrFNl+1jZKHa15CaNkeCLfrnlBRpIhEAd32br6gtOOVUbEMEyZQ9619jnFsj4XH5SvOEPCBRe X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1c3aa9f9-be27-485e-8df9-08d6285e5ba9 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:BN3PR0301MB1219; X-Microsoft-Exchange-Diagnostics: 1;BN3PR0301MB1219;3:QN9lmIjPbyLf5H0mK2SmxBbYTCOvQWACLD1GLAPkUirueL3XIiR353yCLf3nJiuFrrvRDfBArDexYS5fbIIqST7bY2wBA60uaId79kNHUXrTOnoBKF9I87pCyXKuVTYJjCcsfH2l9N4k9HrztQJs3s+RNiJ+Xi57Met5bgTYoxmCk0BEPcFyXc6hRbDflnexbHhYcEuw/URzD0jsEDe+OM9qjwy5uAS9RVxAlrSdLiCUr3daTkNvMQZ4evAqrzKdaVAzzQ+/l3UasNotUjhXrLYsFkRekNJhtGnXNkKU4X1KoD1ULALwuMDiqG7H8itrtsWEAySDG6D+HfuShb8UpYxgCvnVjDVBh0MnUSe/+18=;25:RkGCtQInNCL3kE18WrnGAbQJzNk8ods8+V3qfZaQfT/aWN7TVxLU14TT+XDtmfektTJl+Q/5KVj6+hifV35JH1Snd5qQimjJrn/sc/MSbj1GeW37QSiMDWtZ2AW5zOAoGNSaWUv0OBFL4s1eF9+CLLLh7krekixGtpYQAuC7yPyztQ2Qo9f4oF/0bTztPeZybLrjqcfyhjUHmukpdEkG2UcybdTWjI5lNRJPkiXFSckX15LhNuiCH2chhYg3CP6rEYWfjY1pBrk9KMOLUwI7HpGY/FS9MfPv7y470xp3w+8665Tvr3nmn5TRi0N45ZCu9ipX+ysDPhaqeL7HnC4+ncGEs6mBut/PSqiltuRSK6Y= X-MS-TrafficTypeDiagnostic: BN3PR0301MB1219: X-Microsoft-Exchange-Diagnostics: 1;BN3PR0301MB1219;31:al8IHJMgRA5LG6MOWpIZ1CDKqnZgkvwDqdvCcy6AqCqmBRLWXIStedkqu386aTTvL7fMBTbwmxmobvouQOgpiRqp9qgAYAl2FEOXzZl45BNmCtJ+0892E173yXK3BxRr7dNeFFdjRABy7APR05rcmPgDLGBtQlDQkFom1oEKJ3sAciPLlLmIQDvANg490fuZEBjWwH5cgUzjGBB7Y2x83uUDTH8Ox6u6cpthV0bdrsM=;20:EMOc3hg8fwO1/JbkSK+IFmIu74y+iAazNI44yCz+Pt8cL515MQYO6lTZn2uLUfCJujx4z2BwwR67m1GQoOdj4clbpltMiGKgsSYVBJEbQuB+rQkbJEgqsZXaoDR76DMcMmu7PLMUMVKwnt/5Qb+Ys29n/NJJ66OKp13CYLGyTlYLcTXVFUQ9fh22qngOvLfL+6gOeKrblpdiCZ+Y3iKCf2TaTq3Ffr39pS6uW9QldudqU2quGrbCGKEA66ra77D4lxqZTSXdFT0bJDA1tL6YgHrjW32IChEbBxBeD67aKzmwCYtOn9MS9jQmTCQMFy9OlYKB4Y5+Kor5sqjFa7nz9sQ5RSrOE7dTVy8pafJCrEqtAktHIz6bvedwMOLSWfn+ne0690r7ONqb8LLLfKaBGCROjX4ODU5zB4V7WAPCi2VGyC13/1oJR0zWvEkF2j+jSaG/sMPd56JH0BGQ+3wmzSxIuh+67b7oPrXjfPSkcCPPdtao/GgLp2ccwmPxVRrp X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(232431446821674); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93004095)(10201501046)(3002001)(3231355)(944501410)(52105095)(6055026)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(201708071742011)(7699051);SRVR:BN3PR0301MB1219;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0301MB1219; X-Microsoft-Exchange-Diagnostics: 1;BN3PR0301MB1219;4:rOmVfUp4TWNl1z+B2h6Fkyb1VdF1w+YiJMOb/K+2Rn30G+eqY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lPA1/KHYbodt2QhHiqFv3hzbZ5Y8ntrAqSnOW038mHrkCae0UKd+KAnmrk9t93UKBXnS0feuJ1CIIS0zMDEgn83hqnvfeF9ap9cq6ONhNpl0mUmHCa7aGcPgfqwnfv0K9fH/0k2PVMEjg==;5:0Z25jiVuLKYvBl8Ti29UYgGCEdCzMaQnQZJ9d9ZU+Ai4G103kepOwHuNzhOiicizqQ7uNAMFEOKMzTx/Sk7i3hEivHVQZQ4NHhKrMXLRl8YMczF7rki5i3rFyK9Q8GA6rBdVH+1DwnjOMYiu3Y0/VbLajYeNkZWMmlSla9yiHrY=;7:ntWLaj2+Q0TPjwhZsNozjtOzAsEq55T5jP53ZE7jbzt0j4BB7lc3UAD8MnjtDKcaMz4CUtAyq6nwmpF9pwFVHrY5CW4gSLkPsYIPYsyZ6r6FEDCHoCJLxAfOQk5FDMLS8jSJcWrmrBen2J+aR3PDDS1TeeCZiikzqSi8VrtVypv3KGatExaXNy88VF5/ftIqCZbtos6H4GFjf7Ro/g9gH++f3fVrRZqi5lDuJ/OqzDuvLyCoso2Rid+7MzT5Bydh SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Oct 2018 11:58:24.8130 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1c3aa9f9-be27-485e-8df9-08d6285e5ba9 X-MS-Exchange-CrossTenant-Id: eaa689b4-8f87-40e0-9c6f-7228de4d754a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=eaa689b4-8f87-40e0-9c6f-7228de4d754a;Ip=[137.71.25.57];Helo=[nwd2mta4.analog.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0301MB1219 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The checkpatch script doesn't like camel-case names. Renamed the variable. Signed-off-by: Alexandru Ardelean --- drivers/staging/iio/impedance-analyzer/ad5933.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/iio/impedance-analyzer/ad5933.c b/drivers/staging/iio/impedance-analyzer/ad5933.c index a2370dd1e1a8..8a920f675b83 100644 --- a/drivers/staging/iio/impedance-analyzer/ad5933.c +++ b/drivers/staging/iio/impedance-analyzer/ad5933.c @@ -84,13 +84,13 @@ /** * struct ad5933_platform_data - platform specific data - * @ext_clk_Hz: the external clock frequency in Hz, if not set + * @ext_clk_hz: the external clock frequency in Hz, if not set * the driver uses the internal clock (16.776 MHz) * @vref_mv: the external reference voltage in millivolt */ struct ad5933_platform_data { - unsigned long ext_clk_Hz; + unsigned long ext_clk_hz; unsigned short vref_mv; }; @@ -726,8 +726,8 @@ static int ad5933_probe(struct i2c_client *client, else st->vref_mv = pdata->vref_mv; - if (pdata->ext_clk_Hz) { - st->mclk_hz = pdata->ext_clk_Hz; + if (pdata->ext_clk_hz) { + st->mclk_hz = pdata->ext_clk_hz; st->ctrl_lb = AD5933_CTRL_EXT_SYSCLK; } else { st->mclk_hz = AD5933_INT_OSC_FREQ_Hz; From patchwork Tue Oct 2 11:57:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Ardelean X-Patchwork-Id: 10623497 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 3105216B1 for ; Tue, 2 Oct 2018 11:58:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2424728815 for ; Tue, 2 Oct 2018 11:58:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 188DF2884B; Tue, 2 Oct 2018 11:58:53 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 9F8BA28815 for ; Tue, 2 Oct 2018 11:58:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727528AbeJBSlt (ORCPT ); Tue, 2 Oct 2018 14:41:49 -0400 Received: from mail-by2nam01on0088.outbound.protection.outlook.com ([104.47.34.88]:51615 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727434AbeJBSls (ORCPT ); Tue, 2 Oct 2018 14:41:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.onmicrosoft.com; s=selector1-analog-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ILRDAN9ouWaUFGd7xPPcnxXFUBtkAqfRLiP0O8TjdBI=; b=HsYterVWj6zsqaMGiEWJmDSonEscKF69aW/uaNZNZyJiXUS0rGkwmk205SP1SMsMOcqFzKwq/K2g3h9aG9PUyTAgQB3SeQgFU3xJ0n7j/cJNV821EcG9KvoaqMAdY0U/TVr11Xx8tG+ILD8cmWn7wAUPwswh4bNVrqkXIZ0pi+E= Received: from CY4PR03CA0024.namprd03.prod.outlook.com (2603:10b6:903:33::34) by MWHPR03MB3135.namprd03.prod.outlook.com (2603:10b6:301:3c::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1185.24; Tue, 2 Oct 2018 11:58:48 +0000 Received: from BL2FFO11FD008.protection.gbl (2a01:111:f400:7c09::109) by CY4PR03CA0024.outlook.office365.com (2603:10b6:903:33::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1207.18 via Frontend Transport; Tue, 2 Oct 2018 11:58:48 +0000 Authentication-Results: spf=pass (sender IP is 137.71.25.55) smtp.mailfrom=analog.com; gmx.de; dkim=none (message not signed) header.d=none;gmx.de; dmarc=bestguesspass action=none header.from=analog.com; Received-SPF: Pass (protection.outlook.com: domain of analog.com designates 137.71.25.55 as permitted sender) receiver=protection.outlook.com; client-ip=137.71.25.55; helo=nwd2mta1.analog.com; Received: from nwd2mta1.analog.com (137.71.25.55) by BL2FFO11FD008.mail.protection.outlook.com (10.173.161.4) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.1164.13 via Frontend Transport; Tue, 2 Oct 2018 11:58:47 +0000 Received: from NWD2HUBCAS8.ad.analog.com (nwd2hubcas8.ad.analog.com [10.64.69.108]) by nwd2mta1.analog.com (8.13.8/8.13.8) with ESMTP id w92Bwlp1006473 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Tue, 2 Oct 2018 04:58:47 -0700 Received: from zeus.spd.analog.com (10.64.82.11) by NWD2HUBCAS8.ad.analog.com (10.64.69.108) with Microsoft SMTP Server id 14.3.301.0; Tue, 2 Oct 2018 07:58:48 -0400 Received: from saturn.analog.com ([10.50.1.244]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id w92BwKjI012604; Tue, 2 Oct 2018 07:58:38 -0400 From: Alexandru Ardelean To: , , , CC: , , Dragos Bogdan , Alexandru Ardelean Subject: [PATCH 2/4] staging: iio: ad5933: Add regulator binding for vref Date: Tue, 2 Oct 2018 14:57:58 +0300 Message-ID: <20181002115800.12399-2-alexandru.ardelean@analog.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181002115800.12399-1-alexandru.ardelean@analog.com> References: <20181002115800.12399-1-alexandru.ardelean@analog.com> MIME-Version: 1.0 X-ADIRoutedOnPrem: True X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:137.71.25.55;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(136003)(396003)(346002)(376002)(39860400002)(2980300002)(438002)(199004)(189003)(50466002)(48376002)(6666003)(47776003)(8936002)(4326008)(107886003)(36756003)(44832011)(1076002)(486006)(14444005)(5660300001)(2616005)(86362001)(77096007)(476003)(26005)(110136005)(2201001)(51416003)(478600001)(7696005)(316002)(186003)(356003)(11346002)(76176011)(54906003)(126002)(426003)(106002)(246002)(2906002)(8676002)(50226002)(16586007)(53416004)(106466001)(446003)(7636002)(336012)(305945005);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR03MB3135;H:nwd2mta1.analog.com;FPR:;SPF:Pass;LANG:en;PTR:nwd2mail10.analog.com;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11FD008;1:pjsNWUZbiEY47ZsDR+Tzde15BKVhTay8YSQZAgJE+Gv+B2BTn3vxvaBjZ0Ufg8N/bvnzMzYF2VJa/e8i8fVZMxVwAi++JrBSKK1gh8VRXXJpzbj5I4U7AAB0pSKs909x X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c3fd311a-2e95-4bc3-24d6-08d6285e693c X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:MWHPR03MB3135; X-Microsoft-Exchange-Diagnostics: 1;MWHPR03MB3135;3:EO20MdN6uyR4vRLBFICkG4NOZAos9EOF7YeSmqPpfKGDuo/35dGLg3nwrOks3gTR1/FqofckkNrGlPXNavy4uXlbrXlbzwKfItK93l3Hnq+5LRGP25hiapSfvre1U7WGhHwKZ32tpDx9hvYDkTN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PD9m+1eHai21teQLX0+RInurOdimPXxSJk5CiCYBYuRhqvHIE+jUIGIzzhrI6Hr/I88+o4Fndesa/vzQgjFqXLrfL9ifECcXbEhbNvOyZ7l47gFeqdKRq0RHloWYKh3dGFRbqDDZwgd8+3EZCe3RRJBcdFrn0JrmI+BaHWtzWMYJNfnGmj+CRNvTc0s9jio9CdvL205L12M4YOTbDpz1BdpdgapgV3wewBdk7sJxujPQoR+G7iVUMuZpZ+EZkJJee/PEuVkS16SZh3tIWSS5w2jsLC3yRBkwRUzwxR X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(232431446821674); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231355)(944501410)(52105095)(3002001)(10201501046)(93006095)(93004095)(6055026)(149066)(150057)(6041310)(20161123564045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(201708071742011)(7699051);SRVR:MWHPR03MB3135;BCL:0;PCL:0;RULEID:;SRVR:MWHPR03MB3135; X-Microsoft-Exchange-Diagnostics: 1;MWHPR03MB3135;4:xoD8VX4WpqKvbHHTyYAM91cFgtrllVRCF8CUin8a1XuMlMMJentbBBlbFMYBufdvs+HCHsAARcAWPzhmkzF4TtnknqhFkCwwB0GgflN+STcfjtZT2S/CZie23bzVwM2ZtF0TpMR+OybqFF/tw8Lv1d05GOzGiCCRmgiun8tUtAAx3ku+j/OztOsJPvgYKaVzTEVegkRX//dsKu1P7HwPv6bEKmWtNVgJmP6KeBr8Z2g5eLkF60X9FELjGy5MwoY1aIx16g775D/oz/HvVRr/nc3GAsl5dJuIvmMxh5VCuYM28j7N78iucTHOqqjztL5S X-Forefront-PRVS: 0813C68E65 X-Microsoft-Exchange-Diagnostics: 1;MWHPR03MB3135;23:mB+D1KOfhcu9Mpkb43t4isrzr11aYz5uReWrfDUEcZXzlRu3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Frr7k=;7:QAWofRB4+0eiGYKW9HlGMBkCpO4AiPSqucbvIilpK4XLlvHDmNBTLIuXi1xRvJUznm3EGafZAI6EM/iJ4qclo855CXr9Eo+I68+u4DtPcQcoHTjFmKGAC3djPHIk9Zfokq5N2PnyTEotKzeMgFN39ki5/wgSV+nRAHSsdVaZZW5e/5epW/s8pGZ90k9tmUKcR+4Uixx35IXGzG9/Q+qNu5TND248BTnCS4cLQ3FXt0FGqLmkeWAl23V7TfI3KNhC SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Oct 2018 11:58:47.5996 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c3fd311a-2e95-4bc3-24d6-08d6285e693c X-MS-Exchange-CrossTenant-Id: eaa689b4-8f87-40e0-9c6f-7228de4d754a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=eaa689b4-8f87-40e0-9c6f-7228de4d754a;Ip=[137.71.25.55];Helo=[nwd2mta1.analog.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR03MB3135 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Dragos Bogdan In order to add full device tree support, add the option of specifying the vref using the regulator framework. Signed-off-by: Dragos Bogdan Signed-off-by: Alexandru Ardelean --- drivers/staging/iio/impedance-analyzer/ad5933.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/staging/iio/impedance-analyzer/ad5933.c b/drivers/staging/iio/impedance-analyzer/ad5933.c index 8a920f675b83..ec54ab4471b9 100644 --- a/drivers/staging/iio/impedance-analyzer/ad5933.c +++ b/drivers/staging/iio/impedance-analyzer/ad5933.c @@ -97,6 +97,7 @@ struct ad5933_platform_data { struct ad5933_state { struct i2c_client *client; struct regulator *reg; + struct regulator *vref; struct delayed_work work; struct mutex lock; /* Protect sensor state */ unsigned long mclk_hz; @@ -721,6 +722,14 @@ static int ad5933_probe(struct i2c_client *client, } voltage_uv = regulator_get_voltage(st->reg); + st->reg = devm_regulator_get(&client->dev, "vref"); + if (!IS_ERR(st->vref)) { + ret = regulator_enable(st->vref); + if (ret) + goto error_disable_reg; + pdata->vref_mv = regulator_get_voltage(st->vref) / 1000; + } + if (voltage_uv) st->vref_mv = voltage_uv / 1000; else @@ -747,7 +756,7 @@ static int ad5933_probe(struct i2c_client *client, ret = ad5933_register_ring_funcs_and_init(indio_dev); if (ret) - goto error_disable_reg; + goto error_disable_vref; ret = ad5933_setup(st); if (ret) @@ -761,6 +770,8 @@ static int ad5933_probe(struct i2c_client *client, error_unreg_ring: iio_kfifo_free(indio_dev->buffer); +error_disable_vref: + regulator_disable(st->vref); error_disable_reg: regulator_disable(st->reg); @@ -775,6 +786,7 @@ static int ad5933_remove(struct i2c_client *client) iio_device_unregister(indio_dev); iio_kfifo_free(indio_dev->buffer); regulator_disable(st->reg); + regulator_disable(st->vref); return 0; } From patchwork Tue Oct 2 11:57:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Ardelean X-Patchwork-Id: 10623499 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 EA95616B1 for ; Tue, 2 Oct 2018 11:58:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DDBD428815 for ; Tue, 2 Oct 2018 11:58:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D17052884B; Tue, 2 Oct 2018 11:58: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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 5D6B428815 for ; Tue, 2 Oct 2018 11:58:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727526AbeJBSlx (ORCPT ); Tue, 2 Oct 2018 14:41:53 -0400 Received: from mail-dm3nam03on0051.outbound.protection.outlook.com ([104.47.41.51]:20035 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727434AbeJBSlx (ORCPT ); Tue, 2 Oct 2018 14:41:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.onmicrosoft.com; s=selector1-analog-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=itp/3M1YML+LgU8ljpwT1+pV8NZEDnE1/5+7wRx9sd4=; b=rk3Hk6DEe+EtlQ+WAPywRDsb7g0uhgqkTjHqoMwrsNQoKVNZMqAnbWBj+4tMrepexxGUKKZ10A3NyJDn+OyXPZYQFdKp6zoBAS/CiVULUB3e2nX7fReiVESWCz+PSJwqGACdLZt9CWYm5nI4eLo0yl6PrkCdSDfM59rFvGoTR50= Received: from BN6PR03CA0005.namprd03.prod.outlook.com (2603:10b6:404:23::15) by BL2PR03MB545.namprd03.prod.outlook.com (2a01:111:e400:c23::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1185.22; Tue, 2 Oct 2018 11:58:52 +0000 Received: from BN1AFFO11FD013.protection.gbl (2a01:111:f400:7c10::178) by BN6PR03CA0005.outlook.office365.com (2603:10b6:404:23::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1185.22 via Frontend Transport; Tue, 2 Oct 2018 11:58:52 +0000 Authentication-Results: spf=pass (sender IP is 137.71.25.57) smtp.mailfrom=analog.com; gmx.de; dkim=none (message not signed) header.d=none;gmx.de; dmarc=bestguesspass action=none header.from=analog.com; Received-SPF: Pass (protection.outlook.com: domain of analog.com designates 137.71.25.57 as permitted sender) receiver=protection.outlook.com; client-ip=137.71.25.57; helo=nwd2mta4.analog.com; Received: from nwd2mta4.analog.com (137.71.25.57) by BN1AFFO11FD013.mail.protection.outlook.com (10.58.52.73) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.1164.13 via Frontend Transport; Tue, 2 Oct 2018 11:58:52 +0000 Received: from NWD2HUBCAS7.ad.analog.com (nwd2hubcas7.ad.analog.com [10.64.69.107]) by nwd2mta4.analog.com (8.13.8/8.13.8) with ESMTP id w92BwpN2017543 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=OK); Tue, 2 Oct 2018 04:58:51 -0700 Received: from zeus.spd.analog.com (10.64.82.11) by NWD2HUBCAS7.ad.analog.com (10.64.69.107) with Microsoft SMTP Server id 14.3.301.0; Tue, 2 Oct 2018 07:58:52 -0400 Received: from saturn.analog.com ([10.50.1.244]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id w92BwKjJ012604; Tue, 2 Oct 2018 07:58:43 -0400 From: Alexandru Ardelean To: , , , CC: , , Dragos Bogdan , Alexandru Ardelean Subject: [PATCH 3/4] staging: iio: ad5933: Use the clock framework for the external clock Date: Tue, 2 Oct 2018 14:57:59 +0300 Message-ID: <20181002115800.12399-3-alexandru.ardelean@analog.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181002115800.12399-1-alexandru.ardelean@analog.com> References: <20181002115800.12399-1-alexandru.ardelean@analog.com> MIME-Version: 1.0 X-ADIRoutedOnPrem: True X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:137.71.25.57;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(346002)(376002)(396003)(136003)(39860400002)(2980300002)(438002)(189003)(199004)(186003)(50466002)(6666003)(26005)(53416004)(486006)(7696005)(48376002)(110136005)(47776003)(36756003)(51416003)(77096007)(2201001)(1076002)(305945005)(7636002)(86362001)(446003)(76176011)(246002)(356003)(50226002)(106466001)(11346002)(126002)(426003)(476003)(5660300001)(2616005)(54906003)(316002)(16586007)(478600001)(8936002)(14444005)(2906002)(107886003)(336012)(4326008)(8676002)(106002)(44832011);DIR:OUT;SFP:1101;SCL:1;SRVR:BL2PR03MB545;H:nwd2mta4.analog.com;FPR:;SPF:Pass;LANG:en;PTR:nwd2mail11.analog.com;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD013;1:NiKbuLHMT09rbZuhql8WfFopjSxjXb1IWLBGOsb2G3uPN5y5feM7KJe1YSsgn5hnVStFA8lYHk8CUGEayzqJawJgJJVuE0xW3NxOLZneHwi4ck2mQ6I3MQ7aKsnWWWXz X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a6e0cb43-57a4-4aa9-4420-08d6285e6bdd X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:BL2PR03MB545; X-Microsoft-Exchange-Diagnostics: 1;BL2PR03MB545;3:bTOsjitZkg783yzYm8dq7X1REf1si34jC24nhM6rrMV2l7ynJTu7V5T9A4OecV0GPjjuQKB81xXl2XzkdpxuAlLba0NsR633b1YgWv6c0oPxVZc/hJoFwnrAXN5hUfTlLE0v7Op0DSCO35+dJvOO2IxXf4jXk1lf5iwXS/YeML3CguXFUnuFp3S48Vbw48ML13yatQTzIvUGaECkrb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pxvtocJ5yo7nTOeNnkDyifb+44O4a6BpSnetc73LrClq77Ds6ktXAKBIX05wvYBsAMs95H0AumHgW7Ae2iQxEGQaKtoQT1TJ7a+TZq8fdE3hzT1WsPvQ+aokndlHGx/aoP81wG1nr8ilqlST7s+Yj0IsdRWRVovnrcSHqs504jftv3w9OutuqIH9mpMsOYbqWiiGnet3BAOONlWrlqgoz/vIMrKbGuKtlELdQ2AL5DlDUXP7CWmflhvmSMR5q/oA/xcS1qV5R34ct5JXKa X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(232431446821674); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93004095)(3002001)(3231355)(944501410)(52105095)(6055026)(149066)(150057)(6041310)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(201708071742011)(7699051);SRVR:BL2PR03MB545;BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB545; X-Microsoft-Exchange-Diagnostics: 1;BL2PR03MB545;4:dzpGAybTI0MDzV5m+3bt1hd0zfLhmK36i6Y9hDPfPYcn5qYYMHukd5k09pcblLS3oSm18Zng11FcVul6TVfcSGGx2ISrcto0/1aioqSCi272fiYZjThm+OQCGk+gv5gUVgU66hTuebh6hPcLxV/jPJmsm16yh4Xd7cAVZuG8Hx9hlDcGQxzS+Ray8sLeBEKlbZ0u3wnxvgCmpuiRAU+5DiIVqpZKwvJl91x6wY/EetL7wLM+hL7Rf6RjSah1lvGANmMBvfiXArT58djNLHQLSklIP8AYZj5YrYPiwYbApansvV71kSxDDJ6rqGthBxcr X-Forefront-PRVS: 0813C68E65 X-Microsoft-Exchange-Diagnostics: 1;BL2PR03MB545;23:w59ecmtQ7jz/IWk3EPnEQKpHcXj9c8P7VoyGhvSd80wK6dH0TXV3oLz2a9J/GGs6W7w+V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oIGOX86UEWKKOLMlEXBb82C6P36QaEpDq+M/8m1uie6gOchgPuS7ItjIgaN31sSSox4BUXsvMw9OtxV+0klik1GC19MVc1/lHAil2shcKECEZpS1qOLWiJXVa/Fx6LB6gQ+I1lAXPbaV6gA3/SAW9Su9x38ELiDUWo36zQyZaEU4hT1XuKB244Tg4+kAkxH7oi0ddarg/LIZhT2qzHkV/X2H5D1/CVUj4xs6ykRO25 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Oct 2018 11:58:52.0111 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a6e0cb43-57a4-4aa9-4420-08d6285e6bdd X-MS-Exchange-CrossTenant-Id: eaa689b4-8f87-40e0-9c6f-7228de4d754a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=eaa689b4-8f87-40e0-9c6f-7228de4d754a;Ip=[137.71.25.57];Helo=[nwd2mta4.analog.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR03MB545 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Dragos Bogdan In order to add full device tree support, add the option of specifying the external clock (MCLK) using the clock framework. Signed-off-by: Dragos Bogdan Signed-off-by: Alexandru Ardelean --- .../staging/iio/impedance-analyzer/ad5933.c | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/drivers/staging/iio/impedance-analyzer/ad5933.c b/drivers/staging/iio/impedance-analyzer/ad5933.c index ec54ab4471b9..04208a1df48e 100644 --- a/drivers/staging/iio/impedance-analyzer/ad5933.c +++ b/drivers/staging/iio/impedance-analyzer/ad5933.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include @@ -98,6 +99,7 @@ struct ad5933_state { struct i2c_client *client; struct regulator *reg; struct regulator *vref; + struct clk *mclk; struct delayed_work work; struct mutex lock; /* Protect sensor state */ unsigned long mclk_hz; @@ -735,6 +737,19 @@ static int ad5933_probe(struct i2c_client *client, else st->vref_mv = pdata->vref_mv; + st->mclk = devm_clk_get(&client->dev, "mclk"); + if (IS_ERR(st->mclk) && PTR_ERR(st->mclk) != -ENOENT) { + ret = PTR_ERR(st->mclk); + goto error_disable_vref; + } + + if (!IS_ERR(st->mclk)) { + ret = clk_prepare_enable(st->mclk); + if (ret < 0) + goto error_disable_vref; + pdata->ext_clk_hz = clk_get_rate(st->mclk); + } + if (pdata->ext_clk_hz) { st->mclk_hz = pdata->ext_clk_hz; st->ctrl_lb = AD5933_CTRL_EXT_SYSCLK; @@ -756,7 +771,7 @@ static int ad5933_probe(struct i2c_client *client, ret = ad5933_register_ring_funcs_and_init(indio_dev); if (ret) - goto error_disable_vref; + goto error_disable_mclk; ret = ad5933_setup(st); if (ret) @@ -770,6 +785,8 @@ static int ad5933_probe(struct i2c_client *client, error_unreg_ring: iio_kfifo_free(indio_dev->buffer); +error_disable_mclk: + clk_disable_unprepare(st->mclk); error_disable_vref: regulator_disable(st->vref); error_disable_reg: @@ -787,6 +804,7 @@ static int ad5933_remove(struct i2c_client *client) iio_kfifo_free(indio_dev->buffer); regulator_disable(st->reg); regulator_disable(st->vref); + clk_disable_unprepare(st->mclk); return 0; } From patchwork Tue Oct 2 11:58:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Ardelean X-Patchwork-Id: 10623517 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 7A0CC175A for ; Tue, 2 Oct 2018 12:01:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6CF9327FC0 for ; Tue, 2 Oct 2018 12:01:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5FD142871E; Tue, 2 Oct 2018 12:01:54 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 470EF27FC0 for ; Tue, 2 Oct 2018 12:01:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727609AbeJBSot (ORCPT ); Tue, 2 Oct 2018 14:44:49 -0400 Received: from mail-eopbgr700052.outbound.protection.outlook.com ([40.107.70.52]:59445 "EHLO NAM04-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727434AbeJBSot (ORCPT ); Tue, 2 Oct 2018 14:44:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.onmicrosoft.com; s=selector1-analog-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xrT/KBU7jc+BIcgicSPqgb0/EVRTnC/X2RhRAqwoNZA=; b=WMUc6sCDcSxleCGzGov116O5Zjn1GAEAGEv8fD39cfBJDyNYKt/p8fcuUxD0GRXGLHZmaNJzOGP52gOPQbrPGo+7kYDqkiJFzuASsZIwoN5rm5WzCahtLQdw9oaFeJVnJ5F164E10Z9pBzFN0tzp5Ax/NpSfT+BjKU4kMHZL9DI= Received: from MWHPR03CA0025.namprd03.prod.outlook.com (2603:10b6:301:3b::14) by CY1PR0301MB1226.namprd03.prod.outlook.com (2a01:111:e400:4c5a::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1207.18; Tue, 2 Oct 2018 11:58:57 +0000 Received: from BN1AFFO11FD019.protection.gbl (2a01:111:f400:7c10::112) by MWHPR03CA0025.outlook.office365.com (2603:10b6:301:3b::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1207.18 via Frontend Transport; Tue, 2 Oct 2018 11:58:56 +0000 Authentication-Results: spf=pass (sender IP is 137.71.25.55) smtp.mailfrom=analog.com; gmx.de; dkim=none (message not signed) header.d=none;gmx.de; dmarc=bestguesspass action=none header.from=analog.com; Received-SPF: Pass (protection.outlook.com: domain of analog.com designates 137.71.25.55 as permitted sender) receiver=protection.outlook.com; client-ip=137.71.25.55; helo=nwd2mta1.analog.com; Received: from nwd2mta1.analog.com (137.71.25.55) by BN1AFFO11FD019.mail.protection.outlook.com (10.58.52.79) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.1164.13 via Frontend Transport; Tue, 2 Oct 2018 11:58:56 +0000 Received: from NWD2HUBCAS8.ad.analog.com (nwd2hubcas8.ad.analog.com [10.64.69.108]) by nwd2mta1.analog.com (8.13.8/8.13.8) with ESMTP id w92BwuHV006530 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Tue, 2 Oct 2018 04:58:56 -0700 Received: from zeus.spd.analog.com (10.64.82.11) by NWD2HUBCAS8.ad.analog.com (10.64.69.108) with Microsoft SMTP Server id 14.3.301.0; Tue, 2 Oct 2018 07:58:56 -0400 Received: from saturn.analog.com ([10.50.1.244]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id w92BwKjK012604; Tue, 2 Oct 2018 07:58:47 -0400 From: Alexandru Ardelean To: , , , CC: , , Dragos Bogdan , Alexandru Ardelean Subject: [PATCH 4/4] staging: iio: ad5933: Add of_device_id table Date: Tue, 2 Oct 2018 14:58:00 +0300 Message-ID: <20181002115800.12399-4-alexandru.ardelean@analog.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181002115800.12399-1-alexandru.ardelean@analog.com> References: <20181002115800.12399-1-alexandru.ardelean@analog.com> MIME-Version: 1.0 X-ADIRoutedOnPrem: True X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:137.71.25.55;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(346002)(396003)(376002)(39860400002)(136003)(2980300002)(438002)(189003)(199004)(478600001)(86362001)(336012)(316002)(16586007)(77096007)(26005)(8676002)(110136005)(54906003)(53416004)(186003)(106466001)(106002)(107886003)(476003)(126002)(246002)(8936002)(446003)(11346002)(356003)(50226002)(305945005)(7636002)(44832011)(4326008)(7696005)(51416003)(50466002)(2616005)(36756003)(76176011)(48376002)(486006)(426003)(47776003)(5660300001)(2906002)(6666003)(2201001)(1076002);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR0301MB1226;H:nwd2mta1.analog.com;FPR:;SPF:Pass;LANG:en;PTR:nwd2mail10.analog.com;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD019;1:MfIdVRgp85/6VY5e+3h+Vu6VVpgG2RUn8MblGEp6083G4nHfbCO1z0shKrkwN5IllgTAlAZpmRyiDNPSlN4/gDBc9VifdoZSPagnFcwvFOEk3a2iVc1vcHX4v+xZy016 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 250793e2-876c-4ab2-71e4-08d6285e6e60 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:CY1PR0301MB1226; X-Microsoft-Exchange-Diagnostics: 1;CY1PR0301MB1226;3:9K+WKlgdt5ceeB38PcRDARWN+8KnO5J0r8QakionzAq02bOT77RQkQZc1/rYLP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SAhn1gz4JyH4D0s0gfE0OfM9QCXF2LHngN/NZSeWBkbWcp76jksamglAcLjlakLzvlQC7NXMhk93b8z61F76j6igFbAEDvyl/bByvOpkUr664mJwYyxwUrc0Eq4xh9nUEGGh1epDpSXPJAZmsgAdbKUmdrEW/KdZFqfPcAlnnB8flj+kV+e5qKiSl1W9HMWDLHazxLb5Q84uCe791yfUaiPLrTebvr7ZTiT/nOfIr5po70L6laoFQORPbwiVfJ/od+dcKH1xkBVMTmpY8iuODNAi20eJB7lz88Hdyxanfw9HdnAwCT6178eHFkY86zUe8Wl9C0iQvp1ludK1nxCqhsp56FrmJN1QukHnEdhwvzYbXWMbz1PXpm3gdSWphaakndbKmhLaioXKEAmHasWSmXm7zLgXSF5Tn9ThU6xLm X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(232431446821674); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93004095)(3231355)(944501410)(52105095)(3002001)(10201501046)(6055026)(149066)(150057)(6041310)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(201708071742011)(7699051);SRVR:CY1PR0301MB1226;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB1226; X-Microsoft-Exchange-Diagnostics: 1;CY1PR0301MB1226;4:/BRGowAQS1BOo2qJ/TUBC9+FIiULZjZHe/4bstq0scUIEKtYGjfMOYfxlTO2Dh/luG1vtv9o3b6cvPD/lMRBbo8OCXsW135geKfpxbum4YfU38KfLR8KzyhOw7WgfYknqChrsgcLb+kxVSWRtJQSWP39YhXUL7Fp83XG3RywzBVb0+hycqwHqg3mVpLORNpGhVq33UTZ2ib5Mnp/ObSEm7BRBUyy/499EryqjGQ/N370nP9cGKCw2idQBdR6U7rpjHrFE8NrAvNnN/SfyasEkU6VDAnlHZAfmAIa1M3Xn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OMU8XZy+6f7EeCAjo9JhTi2BFNt1+qRJxZp07bpjeR14Zsb2BM9T+R96okvdyJfJd9noERO87G3zm75tfrttMe0OYpcTe1mX9tk1nVX7kMM6eJVQdWUHq7ycCYOo8XI=;7:W6zSvWHm0aX7a6w4r59BeXH+6w+fq4CdQLaeMn6xbPFSneGtDZGHf0HWRvnL7+X3eDdr2NQVZN/8wQUu5/38Yesd0hYkWETRe5MxluhEVJIf0IUs7EMH34Di2axB42+o6FqtFnJXZ6ngTxhjv/Sv/MCbS5JOq3ROQTk81Y3pt/lAw7i1V6n/9onuPWq3GqDyy3MBhEYl3RpDh8S0w6PWnJoLhbPAnzWUYSa+Ne608t13jchSqlnfpLSY7ICnKcKt SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Oct 2018 11:58:56.2262 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 250793e2-876c-4ab2-71e4-08d6285e6e60 X-MS-Exchange-CrossTenant-Id: eaa689b4-8f87-40e0-9c6f-7228de4d754a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=eaa689b4-8f87-40e0-9c6f-7228de4d754a;Ip=[137.71.25.55];Helo=[nwd2mta1.analog.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB1226 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Dragos Bogdan As part of finalizing the device-tree support for this driver, this patch adds the of_device_id table with supported devices. Signed-off-by: Dragos Bogdan Signed-off-by: Alexandru Ardelean --- drivers/staging/iio/impedance-analyzer/ad5933.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/staging/iio/impedance-analyzer/ad5933.c b/drivers/staging/iio/impedance-analyzer/ad5933.c index 04208a1df48e..ab8b93fd39ed 100644 --- a/drivers/staging/iio/impedance-analyzer/ad5933.c +++ b/drivers/staging/iio/impedance-analyzer/ad5933.c @@ -809,6 +809,14 @@ static int ad5933_remove(struct i2c_client *client) return 0; } +static const struct of_device_id of_ad5933_match[] = { + { .compatible = "adi,ad5933", 0}, + { .compatible = "adi,ad5934", 0}, + {}, +}; + +MODULE_DEVICE_TABLE(of, of_ad5933_match); + static const struct i2c_device_id ad5933_id[] = { { "ad5933", 0 }, { "ad5934", 0 },