From patchwork Thu Sep 13 11:02:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Ardelean X-Patchwork-Id: 10599239 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 11854921 for ; Thu, 13 Sep 2018 11:02:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EB6782A62E for ; Thu, 13 Sep 2018 11:02:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DC6522A62F; Thu, 13 Sep 2018 11:02: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 A50E72A62C for ; Thu, 13 Sep 2018 11:02:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726812AbeIMQLs (ORCPT ); Thu, 13 Sep 2018 12:11:48 -0400 Received: from mail-eopbgr690074.outbound.protection.outlook.com ([40.107.69.74]:57155 "EHLO NAM04-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726786AbeIMQLs (ORCPT ); Thu, 13 Sep 2018 12:11: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=vVXEvOkcPDkApzXcSs1nxl31+Yng7SwCOXCOPvc6zhw=; b=WpZXAAmKq0V9rgghnoGtxi3S9x0VCf23s7YQJyjnhNq5dOMAzGXzWt68Jh5TL+vPkn/HQE2v+IIcrJMtBl28XTTl38pqY/3YVp6UBA5xINTJzZhhF85IfDpYjNEN2Zj6SEI3sgDfP/WA898JSGBmSUSpfptUbiOt+V2ld1H6nkE= Received: from BN6PR03CA0064.namprd03.prod.outlook.com (2603:10b6:404:4c::26) by BY2PR03MB556.namprd03.prod.outlook.com (2a01:111:e400:2c3a::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.15; Thu, 13 Sep 2018 11:02:47 +0000 Received: from BY2FFO11FD026.protection.gbl (2a01:111:f400:7c0c::134) by BN6PR03CA0064.outlook.office365.com (2603:10b6:404:4c::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1122.16 via Frontend Transport; Thu, 13 Sep 2018 11:02:47 +0000 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 BY2FFO11FD026.mail.protection.outlook.com (10.1.15.215) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.1143.11 via Frontend Transport; Thu, 13 Sep 2018 11:02:46 +0000 Received: from NWD2HUBCAS7.ad.analog.com (nwd2hubcas7.ad.analog.com [10.64.69.107]) by nwd2mta1.analog.com (8.13.8/8.13.8) with ESMTP id w8DB2jvU027250 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Thu, 13 Sep 2018 04:02:46 -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; Thu, 13 Sep 2018 07:02:44 -0400 Received: from saturn.analog.com ([10.50.1.244]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id w8DB2gCm002686; Thu, 13 Sep 2018 07:02:43 -0400 From: Alexandru Ardelean To: , , , CC: , , Alexandru Ardelean Subject: [PATCH 1/2] staging:iio:ad7606: Remove incorrect kernel doc annotations Date: Thu, 13 Sep 2018 14:02:11 +0300 Message-ID: <20180913110212.29068-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.55;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(346002)(39860400002)(136003)(376002)(396003)(2980300002)(438002)(189003)(199004)(478600001)(47776003)(1076002)(5660300001)(107886003)(4326008)(50466002)(48376002)(54906003)(106002)(106466001)(53416004)(44832011)(126002)(6666003)(486006)(110136005)(476003)(16586007)(6346003)(26005)(2616005)(426003)(316002)(186003)(305945005)(336012)(77096007)(14444005)(8936002)(86362001)(7636002)(356003)(51416003)(7696005)(8676002)(50226002)(246002)(2201001)(2906002)(36756003);DIR:OUT;SFP:1101;SCL:1;SRVR:BY2PR03MB556;H:nwd2mta1.analog.com;FPR:;SPF:Pass;LANG:en;PTR:nwd2mail10.analog.com;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11FD026;1:VtxnymCkDByMsW2Og3AJyESV74otUlm5cKqc8Te268B7xA2Bu7ib5HdhajMqwrq42KkHxCNLpIDWDcPBN5ft7CmxO2NfEQ0xcnwNgMWZuilnHBAKc2lJTnHrJfASIKuX X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 73cd2b19-dd7a-45b7-356b-08d61968703e X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:BY2PR03MB556; X-Microsoft-Exchange-Diagnostics: 1;BY2PR03MB556;3:TDzyq7DLO8hbh+ElY3DKom4B8TA7dUYTYxKhEAbImJY/AslPO7dvIcqJj6B+DhxkrbH3+g9pUekMZFMF4CPAlChHdRtgbqp4AdKTDokLyvm6qOTby1kUoZkyH7U13PyZV03EAmS1ynd5Xb+eL2kMPihIrBMiDIRhcSj+AInXyAkR234p8N804QFdfHNW4Sq01S1ik0edDLI/gAGSNKupZwqEKUFUYJe7t6lhohEUOUr2S+1XOegarR7SLXiu6xoXLa+rGj1HzEgWp+4LFOf/wBOV0BsMyco5Z2E4Mxu+mjI6pP9owk8/65+CoJZjMH0bM10YWKM1jQLqX2SzapGRzD5yRF70x9iqxEMU/8zecEw=;25:uQOKKHyw+33kYgUB9+IZKh+XkXaxAB3jiYjr2hHg5f7sm3UuDysveq0qRjgZTC5ErZVfRsgaxIJiQU4xzojYA+0IrfSJ1UyKa0OCFbAT3z9+W6icdggOUNJEseDZ8rMFE23lO7nIj+uAIEa/YDoGf3bC1gIxWEtj6p6+gV9+lJzYIwaeegZkhurKC4aQYeKixr842iJt3xKxEIXFkanNGDDpFuHIVgxMaU1Es31dJhj9adWCZzI5XMl9aI0pQ7wpy1gXKCut1nB2f+62dZZY8q93Hx+aZN+DI0CwV3jCKoOSwRgux9By2dZkvZ9wSpROBq66K+HsNlMAwFKEzsYYHg== X-MS-TrafficTypeDiagnostic: BY2PR03MB556: X-Microsoft-Exchange-Diagnostics: 1;BY2PR03MB556;31:tXY8mUlir1yX85IZyLXO7NyvsSbkz6U782+zFYusxO+T4Gei0ts8r7GQXszxeWZiiXs34xhgwEbrDgphQqvafRWifGTR7qfmVGJfOTysE8NejQb8ItWWcYqvtXpCunCEaHw4H+vlb/RnY5yy3etdLdqvzFX+FbIgG8faaxN8H64yKInN/SsYSMxvGkTD7bUjV7K0k3g1xwxj7QTE+PvE7wCn4/nlSdljqXjD7WmXjw0=;20:mclacDDNmOqpz3zoykFyohlh+8A5w1THQdRIkgk5UKMjUorwHsP4BI7CPMHbf5GqYTACdvNxsE7eSduvnPBrjXfrCoqFoWS2qxXV9GXm+mmuG5EodfWKrxqldNRSJuK1ZqZD3DIImM2NR/uFGzKBVfscgjd8bJ9apTZvmZ0QkQVjLWOy7U9JyQw65CMkz7YdRH3/NKSBUSBRVxBQHUxvzubHmxEPolKPjOOqAa7QZ7xXXrnKDf/+dckQpN7/L0JqT04HdEwJfv5R2JkDikfEGCZilauHTnT1lOhl6xfB/LaG6tnmHRSO1PpU0UOwLjIDqqaam9UuSeSjxZap3iydvDSRlWNtdC3p20vpR0uk8e/MNhbVOZXxAVfyzBjime+W6ePJIulpid3z8oc6C3Lsyt0HoR7EX5HTl09suL3Qv3llzWuSkmwLugQHfv9XSJ8rPoQYZEmpShSnh0SmWeL1Fd+ldf555rs5q5nn+0gCv3LQpZY9xbXdQTabXKmTqAVC 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)(3002001)(93006095)(93004095)(3231344)(944501410)(52105095)(10201501046)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699050)(76991041);SRVR:BY2PR03MB556;BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB556; X-Microsoft-Exchange-Diagnostics: 1;BY2PR03MB556;4:hw+YsgM86OEGFA4TworiZnBr/hoRt64SUov9Gi/VirIUdAfq3rc9+ruQbpcGmjvpvUEhpzAWVaIvflurzx3DsBjISYYEYQJRBejFnVbDeNcF/egwAfvBm/GEiY7cvPLv1lIFpoHbVk4Nd2/wDXViV3t6KcwfZwSL+hQX0cstB9wIidgz9tYaMWr7f/PeMWphnpTX4sSGnN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NXCwc8/ubrCoCxKowlhIn9Sw==;5:U1qQg/Gvl+gOIgW6HSukRCdfFswqIdJ04naJYQp9StshmmNgbnrASoKu/qpTll28TI/xXFN5lgr1X68lyyjKvm7I1VhhyJApk16dFeN0Lw5ky7oKB/y+sx6/O9f5EW5gMJwAUBdj2vbK+SQudCg6NHy1wCG+b03wiPIC5TMMmdw=;7:P/93AYEHBOorli6mTR+6nciUgAe7SaZPU9WYZUinqE3Pe1yD2DVTFwggNl0g5qi3HjLcfNyEswyEw7pJDTx/e4R8RIlIRdcHK8Y3aYDvsfNlWaC4xTYUVOB9u/U3Qvv6gxbmU0uSQ2wCsSPeutjVOhHvE+3PZhTRtoR2JYtLjFn7sNn6F1psfAxAd7OSffmOFL+9ThJvWprTd0OGoEL6QcfPV7uPbAVANDSIEsTcMzTQpiAREByvn7+t5wDF6A3L SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Sep 2018 11:02:46.7110 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 73cd2b19-dd7a-45b7-356b-08d61968703e 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: BY2PR03MB556 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 ad7606_chip_info struct does not have the lock & name fields. Remove the kernel documentation annotations for it. Signed-off-by: Alexandru Ardelean --- drivers/staging/iio/adc/ad7606.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/iio/adc/ad7606.h b/drivers/staging/iio/adc/ad7606.h index 24c2a85f5c5a..57f11b46bc69 100644 --- a/drivers/staging/iio/adc/ad7606.h +++ b/drivers/staging/iio/adc/ad7606.h @@ -11,10 +11,8 @@ /** * struct ad7606_chip_info - chip specific information - * @name: identification string for chip * @channels: channel specification * @num_channels: number of channels - * @lock protect sensor state */ struct ad7606_chip_info { From patchwork Thu Sep 13 11:02:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Ardelean X-Patchwork-Id: 10599241 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 CAE47920 for ; Thu, 13 Sep 2018 11:02:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB3B82A520 for ; Thu, 13 Sep 2018 11:02:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ADD842A5C9; Thu, 13 Sep 2018 11:02: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 DD0D22A62C for ; Thu, 13 Sep 2018 11:02:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726786AbeIMQLu (ORCPT ); Thu, 13 Sep 2018 12:11:50 -0400 Received: from mail-sn1nam01on0082.outbound.protection.outlook.com ([104.47.32.82]:19136 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726797AbeIMQLt (ORCPT ); Thu, 13 Sep 2018 12:11: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=S82lcbTKTwOH99xnhC6Q5qIM6w9e82c5Ofuhe/4ct0E=; b=ly08vfBPqIY8uv82GyGA8M5y2CItygmxcb1YkCViU+3E9uH5HxStjAGlmKh13YLfaO2SJZJ1A2GJlS4GxOeO5qj82RhXL+s3Apsvl21myFXamDcHlVq+VCfu4/wLknYWztIWcZhqhpSEitXMU2ohqBVo408AkImZYDM2ugoLV1g= Received: from CY4PR03CA0106.namprd03.prod.outlook.com (2603:10b6:910:4d::47) by DM2PR03MB559.namprd03.prod.outlook.com (2a01:111:e400:241d::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1122.19; Thu, 13 Sep 2018 11:02:47 +0000 Received: from BL2FFO11FD014.protection.gbl (2a01:111:f400:7c09::196) by CY4PR03CA0106.outlook.office365.com (2603:10b6:910:4d::47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1143.15 via Frontend Transport; Thu, 13 Sep 2018 11:02:47 +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 BL2FFO11FD014.mail.protection.outlook.com (10.173.160.222) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.1143.11 via Frontend Transport; Thu, 13 Sep 2018 11:02:47 +0000 Received: from NWD2HUBCAS8.ad.analog.com (nwd2hubcas8.ad.analog.com [10.64.69.108]) by nwd2mta4.analog.com (8.13.8/8.13.8) with ESMTP id w8DB2lhU017589 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=OK); Thu, 13 Sep 2018 04:02: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; Thu, 13 Sep 2018 07:02:47 -0400 Received: from saturn.analog.com ([10.50.1.244]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id w8DB2gCn002686; Thu, 13 Sep 2018 07:02:45 -0400 From: Alexandru Ardelean To: , , , CC: , , Alexandru Ardelean Subject: [PATCH 2/2] staging:iio:ad7606: Add support for the ad7605-4 Date: Thu, 13 Sep 2018 14:02:12 +0300 Message-ID: <20180913110212.29068-2-alexandru.ardelean@analog.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180913110212.29068-1-alexandru.ardelean@analog.com> References: <20180913110212.29068-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)(396003)(346002)(376002)(39860400002)(136003)(2980300002)(438002)(189003)(199004)(4326008)(107886003)(316002)(36756003)(16586007)(54906003)(110136005)(106002)(47776003)(106466001)(53416004)(2906002)(14444005)(1076002)(246002)(305945005)(7636002)(8936002)(50226002)(356003)(8676002)(478600001)(77096007)(26005)(7696005)(48376002)(426003)(51416003)(2616005)(476003)(126002)(11346002)(446003)(186003)(336012)(50466002)(6666003)(5660300001)(76176011)(44832011)(486006)(86362001)(2201001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM2PR03MB559;H:nwd2mta4.analog.com;FPR:;SPF:Pass;LANG:en;PTR:nwd2mail11.analog.com;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11FD014;1:vdAKcbjNNNCwUVK5MM1CtSIjiMgjCXuL5ybB+2QLej5yDAwVLDX7copMzGRxWgZNKiBOGnbaglCdR2/gMyLj7WbCQUCczXJPQvCF7LhIWfFyvtt5a/n22yp0U/zUUtuf X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 47be6200-66a9-47e5-33fc-08d61968709f X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:DM2PR03MB559; X-Microsoft-Exchange-Diagnostics: 1;DM2PR03MB559;3:Z1BfPWDI7v3mxI/Ls9zK80AVRovnCH3jvFFRaiZ6/yjjHdBj+re1qq3aYCJLynK452V95Q+qEtYoIvtfDIzvpOeqb7VRYSbLWqbYfGq1QERQxcp4MRbZRRnxIg2mCIQgQ9l1XVh+oDoCnjZG2n3JJAodlvd4MXj+frMxXSmP3fgjjaYqQPoqNqs0ONDDbWKAtBidTNp/qPmc6WlQnTaj77hkgZaAuqUedyCli7NOXCKhkCHiZjMahDxIIsr+6jqJSyCT6LxHV8OuoxbgVKOhY2C/bZy1G7fdtIHKTX4mZXFDOSh0IKGkYSaEHVEmxbHfAW/6D/Rt5v0b2qEBEZwHYmo26z1L9xBTe6+ihgaFZaI=;25:Wnb49nzJE3PN6mSKikQATQ2L44kCBLjtJ2q1qsMdzdR5x9zNAV99ZlIyXFati0RJpgVh1uDy8ZV0oDJ5b6akDS9bIrJNdEeUDvHmd9NqbgD5NquPedC0bxKPRXMww/3Pd7k8gBj8wbEvJTswrsdRmQt9HezrMPrvUJ9qknnC7IL5Df8Dk/jcWlJ32jGWeGNtiqRfGmBwcRvBCSlubBv/X/IYB9os1efHU7xfsvclCfQ+Qauhnzuev8lkvbePqJHZeSmQym+Wduzd8JG4VqVs48v45qUdwhXLBaoz3fWsHLEXCd39Qk4HicJawVSnMZjJ/H18vOEr0gi3AeOYml/jNQ== X-MS-TrafficTypeDiagnostic: DM2PR03MB559: X-Microsoft-Exchange-Diagnostics: 1;DM2PR03MB559;31:81ymxaBT5N7cct2qEXsgnBgO7jKaJW5NkM6CEVgL2fvnbqMYoYvP5KHFC5BXF1CoZZgGOOfBRGw1XAp3R7xnvlS4DoE9n0eIpotA7xPY6dftYTaaj7KoF0VuaCY4oT/9mt7WcFHUI3ps9dyJQd06b6tKesjxKNIsZAOKQE6Gx/vl0qBMwo30WAFGL+R0rw5gMXbc8B1pYMs6oZu/ZTqolo+11uD1i+FQedKJ6Dc52Wk=;20:qJHb+shcIG9lVNX2kXT5OfgEi7p92tlAHBPRNJxG5oWsnZK/hzqEoioDZJq+W9lpXj1/jSIYAJgql7motzIWtFBqJNEbqUURmnRE7vBjUJtRentp4pBZX0cgDU7K0oqafawtG96mK6bBClV0axsKkaUXD1VP5EcZNufqJqNY4Wg/yIuddN4BvgIhAXWZ8oMA7XIAGwHcU9W9A9Cpl9CWpguvUsCd/noj6aKea3BGAfaF5G6sx4Csk0mmAg7aBwRATxATS2RcDv/xMF/yYtwTltVj0ty08qlzVLToIUIEwN3FdKFF2kvl9P/nV0SDJujdjJEA3vdIHp7EloMCJY2sl0FZqGuJc+os3iamA18eFaCFnbKacOhY6qgrm+uFFSPp3QNJ8LfXkZqKlaBWuVc7iDQmVktlHABXiRP5upSGaa/7P6HEIylILHM1vvxggDDjSUaRgqVMusQCJOygFA2CADC+2jL4bL3+4a4FI5Loc91Et27pajP3YgK0HrDstzhI 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)(3002001)(3231311)(944501410)(52105095)(93006095)(93004095)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123564045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699050);SRVR:DM2PR03MB559;BCL:0;PCL:0;RULEID:;SRVR:DM2PR03MB559; X-Microsoft-Exchange-Diagnostics: 1;DM2PR03MB559;4:XdM74Z+OyBoNNZqWlww5z+fx0PQwsRy+st9S72PAiCXuN9T9KLiL7+WzL+eXmzjng6LNJeIhiI9lR5matU58MkhKXAOvso87Qc132DxJTgars58LabCNGOF6NTqd9cq9IebDhr9IK/YjF4sqNVIl9VVAdRr0ws+bcryHMrOWOeUGNrrbIvj9UnLYZF7OfgZTr6Wx+qcr3ghHsV2Uaiag1ctxAHEpzeMWjJu4lAIOHAOe6iWmN7nzOBhCXKVXmnX6NJcSNtp2hImPCCwSV6/dTij/HJVik50WUfjmPM6PKQALxxfmaQWQFuZm2nBBMNLY X-Forefront-PRVS: 07943272E1 X-Microsoft-Exchange-Diagnostics: 1;DM2PR03MB559;23:XhPrd/UzqvoV3Hr8L23VWZ5VmjBLCF6ciB44Q07RZtisg8Xs6SEyWDc6AdjwJuFld26Emcd38vMvHAJoXaXzu0dVRo6rOJU/qM+TFSBDWULhZceUcKDaTEeWLHTushVHpnwCYf0Vx0BBT0XzFxLDO3rZZNjxyQaXojf8HYXkeNH5D78HMjoPnoxdjVlIYwNrPcuYW7pKY03atiIzB0iELmZ9nzW/g8DAdkeXw/oo2fGk2cPx7t58moz1vMzmCEH9obpaHfuMJGju4p6sbBplsP1ubZXTVAm5fjgxbm0PiSousCXuG+rfxcgF6eDvH7NdRdZD9+/BNfxftQ23Z5vt1Kjp+NzNuMQt0DJ2zEN9ftd5X0gjP1UBRMljfKH28qFPcHLkl7HH5bYVrR4Gfsk6LKEo/+w5hv8JLBK8Cwe+uecc/LdZXeI9ZRUUVTycyh4OU2B8YLnguQ19DfkxIlWAGs02OheXD80ZCFbzbhETO1k4FU4B3pQCe0seMsJjHPMFxaj7IREl+1op11f4hFg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EuaDjB8s1YE3ihB7pD7OpGtEe+GYmrTIhwcq68Vghn+LsoNaNBdZE5EkYk9DfX5JlLJnkBYCv4MJx97Bhwk2tRSfrGGO8xatkJMDFAj+089ikAOFt7JrImdktct3MojBK9WCrGmP7J0Hu8zj6PRewcgHTcAxiaa3wHuDoTPsLLRiPu5CrucXT6ZDZ+Rzo3/OsBioAm2E9KzyhMh1/ztOBjY0ce9HD3pnNhk1qcr3Uq+g19sjmTJAKNIQO6eZEbgrndcvcWiK5qix+sUQYUoXcVKs4KptZv9JoVA3+p/nTP0lbcff0/4mo7MPbKikhUVoZAuiLV+90Z1WuFA8Q41b3+S4dCkrUuPpiO270DGpjcUoZm+tCTYth+3YxuzA9OUvEUuzGO7MkVM0O4oGeE+lM7UWKnR1Db/x3y2f0T4CXlBS3w==;5:tSCVhByrkOsv+RrSGEykMCGdbGt47UA0Io3xHS/2jlD77kUYJM1oxIma37UBdMTa2dcMl1TqMX25noZNckkbIDSX5X4CPBmdWkrNUe5pFfNLX0C3ZFBml0d/BJrLkjkiQRO3x2lDMZnSPY2S6iz3q7F0sG9hK4dxkHEzGNkl1Kw=;7:iWjjs/L3+yPSBsUCwWEbwakuKMnM0wg7Tm45EI/Ej6ntDxOhUejCaRxqH0hd9ZaZRfqnM6SLI6Lt2NJS4DW8qTnRUrct4VY9178EgMBxhTfRLq2pXo4j0qu66JRlnv0A/Z0zQ4iofw4hJrQ4ebpbLRJAs1CoRVJ+NfjCv0V/ffw5h/bUAg9DQDkjzhVCTOre7BgfzXibzRb1VOomdDPQaQxABkxLdoj2Ci7/3MhkR2J7zdIWJHdml0tZUJxkA1wZ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Sep 2018 11:02:47.5340 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 47be6200-66a9-47e5-33fc-08d61968709f 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: DM2PR03MB559 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 Add support for the AD7605-4 to the AD7606 driver. The AD7605-4 is mostly interface compatible to the AD7606-6 with the only difference being not having support for oversampling. Signed-off-by: Alexandru Ardelean --- drivers/staging/iio/adc/Kconfig | 2 +- drivers/staging/iio/adc/ad7606.c | 33 +++++++++++++++++++++++----- drivers/staging/iio/adc/ad7606.h | 3 +++ drivers/staging/iio/adc/ad7606_par.c | 3 +++ drivers/staging/iio/adc/ad7606_spi.c | 1 + 5 files changed, 36 insertions(+), 6 deletions(-) diff --git a/drivers/staging/iio/adc/Kconfig b/drivers/staging/iio/adc/Kconfig index e17efb03bac0..9d3062a07460 100644 --- a/drivers/staging/iio/adc/Kconfig +++ b/drivers/staging/iio/adc/Kconfig @@ -11,7 +11,7 @@ config AD7606 select IIO_TRIGGERED_BUFFER help Say yes here to build support for Analog Devices: - ad7606, ad7606-6, ad7606-4 analog to digital converters (ADC). + ad7605-4, ad7606, ad7606-6, ad7606-4 analog to digital converters (ADC). To compile this driver as a module, choose M here: the module will be called ad7606. diff --git a/drivers/staging/iio/adc/ad7606.c b/drivers/staging/iio/adc/ad7606.c index 793de92f27ed..06d65196bedb 100644 --- a/drivers/staging/iio/adc/ad7606.c +++ b/drivers/staging/iio/adc/ad7606.c @@ -275,7 +275,7 @@ static const struct attribute_group ad7606_attribute_group_range = { .attrs = ad7606_attributes_range, }; -#define AD7606_CHANNEL(num) \ +#define AD760X_CHANNEL(num, mask) \ { \ .type = IIO_VOLTAGE, \ .indexed = 1, \ @@ -283,8 +283,7 @@ static const struct attribute_group ad7606_attribute_group_range = { .address = num, \ .info_mask_separate = BIT(IIO_CHAN_INFO_RAW), \ .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE),\ - .info_mask_shared_by_all = \ - BIT(IIO_CHAN_INFO_OVERSAMPLING_RATIO), \ + .info_mask_shared_by_all = mask, \ .scan_index = num, \ .scan_type = { \ .sign = 's', \ @@ -294,6 +293,20 @@ static const struct attribute_group ad7606_attribute_group_range = { }, \ } +#define AD7605_CHANNEL(num) \ + AD760X_CHANNEL(num, 0) + +#define AD7606_CHANNEL(num) \ + AD760X_CHANNEL(num, BIT(IIO_CHAN_INFO_OVERSAMPLING_RATIO)) + +static const struct iio_chan_spec ad7605_channels[] = { + IIO_CHAN_SOFT_TIMESTAMP(4), + AD7605_CHANNEL(0), + AD7605_CHANNEL(1), + AD7605_CHANNEL(2), + AD7605_CHANNEL(3), +}; + static const struct iio_chan_spec ad7606_channels[] = { IIO_CHAN_SOFT_TIMESTAMP(8), AD7606_CHANNEL(0), @@ -310,17 +323,24 @@ static const struct ad7606_chip_info ad7606_chip_info_tbl[] = { /* * More devices added in future */ + [ID_AD7605_4] = { + .channels = ad7605_channels, + .num_channels = 5, + }, [ID_AD7606_8] = { .channels = ad7606_channels, .num_channels = 9, + .has_oversampling = true, }, [ID_AD7606_6] = { .channels = ad7606_channels, .num_channels = 7, + .has_oversampling = true, }, [ID_AD7606_4] = { .channels = ad7606_channels, .num_channels = 5, + .has_oversampling = true, }, }; @@ -351,6 +371,9 @@ static int ad7606_request_gpios(struct ad7606_state *st) if (IS_ERR(st->gpio_frstdata)) return PTR_ERR(st->gpio_frstdata); + if (!st->chip_info->has_oversampling) + return 0; + st->gpio_os = devm_gpiod_get_array_optional(dev, "oversampling-ratio", GPIOD_OUT_LOW); return PTR_ERR_OR_ZERO(st->gpio_os); @@ -429,12 +452,12 @@ int ad7606_probe(struct device *dev, int irq, void __iomem *base_address, return ret; } + st->chip_info = &ad7606_chip_info_tbl[id]; + ret = ad7606_request_gpios(st); if (ret) goto error_disable_reg; - st->chip_info = &ad7606_chip_info_tbl[id]; - indio_dev->dev.parent = dev; if (st->gpio_os) { if (st->gpio_range) diff --git a/drivers/staging/iio/adc/ad7606.h b/drivers/staging/iio/adc/ad7606.h index 57f11b46bc69..f422296354c9 100644 --- a/drivers/staging/iio/adc/ad7606.h +++ b/drivers/staging/iio/adc/ad7606.h @@ -13,11 +13,13 @@ * struct ad7606_chip_info - chip specific information * @channels: channel specification * @num_channels: number of channels + * @has_oversampling: whether the device has oversampling support */ struct ad7606_chip_info { const struct iio_chan_spec *channels; unsigned int num_channels; + bool has_oversampling; }; /** @@ -87,6 +89,7 @@ int ad7606_probe(struct device *dev, int irq, void __iomem *base_address, int ad7606_remove(struct device *dev, int irq); enum ad7606_supported_device_ids { + ID_AD7605_4, ID_AD7606_8, ID_AD7606_6, ID_AD7606_4 diff --git a/drivers/staging/iio/adc/ad7606_par.c b/drivers/staging/iio/adc/ad7606_par.c index 956e38774767..8bd86e727b02 100644 --- a/drivers/staging/iio/adc/ad7606_par.c +++ b/drivers/staging/iio/adc/ad7606_par.c @@ -79,6 +79,9 @@ static int ad7606_par_remove(struct platform_device *pdev) static const struct platform_device_id ad7606_driver_ids[] = { { + .name = "ad7605-4", + .driver_data = ID_AD7605_4, + }, { .name = "ad7606-8", .driver_data = ID_AD7606_8, }, { diff --git a/drivers/staging/iio/adc/ad7606_spi.c b/drivers/staging/iio/adc/ad7606_spi.c index ffd9d0626ec2..b76ca5a8c059 100644 --- a/drivers/staging/iio/adc/ad7606_spi.c +++ b/drivers/staging/iio/adc/ad7606_spi.c @@ -55,6 +55,7 @@ static int ad7606_spi_remove(struct spi_device *spi) } static const struct spi_device_id ad7606_id[] = { + {"ad7605-4", ID_AD7605_4}, {"ad7606-8", ID_AD7606_8}, {"ad7606-6", ID_AD7606_6}, {"ad7606-4", ID_AD7606_4},