From patchwork Fri Mar 15 09:52:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gregory CLEMENT X-Patchwork-Id: 10854407 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 427B11575 for ; Fri, 15 Mar 2019 10:02:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 27E352A90C for ; Fri, 15 Mar 2019 10:02:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 25B572A91D; Fri, 15 Mar 2019 10:02:06 +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.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D673C2A91E for ; Fri, 15 Mar 2019 10:02:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=ltgtkty9jc8h1bMqde3myHDUrl3NVJIul4o2J5gkNDQ=; b=NXoSqBjJZqDNpW IfczPtTxz/YHrfdzfKtr6zvxpKLpSSTlbCyV70COXgBEBGCkJIGFbvCnW61zkp6AtZTosB8avBpy+ 83I3xmn7f+eOBnE8d9tHnufLqazungtjBd+9FBqYXaET6WP3WTwl1RUIxdfbZdvIrbOpJ31qdpgMf zizr3w4ktGidzCWsVIWTXi93YFl3G3Ao2iBRBW+YvOyxSfj0jpRyTiJuTkBd4b5vnmGmJZQrl8pgb rWBG/QADL8w/UvyWquGE6IfF4jYgUNQgbNk+E47KFMYM4K56J1giYsrvTv+brTEXr3mtqQ8/aAOPk 6y4R1V2vzd+DLKgddzCA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h4jfA-0000db-BA; Fri, 15 Mar 2019 10:02:04 +0000 Received: from relay6-d.mail.gandi.net ([217.70.183.198]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h4jf7-0000bW-Ok for linux-arm-kernel@lists.infradead.org; Fri, 15 Mar 2019 10:02:03 +0000 X-Originating-IP: 109.213.80.250 Received: from localhost (alyon-652-1-57-250.w109-213.abo.wanadoo.fr [109.213.80.250]) (Authenticated sender: gregory.clement@bootlin.com) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 1F30BC0026; Fri, 15 Mar 2019 10:01:37 +0000 (UTC) From: Gregory CLEMENT To: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , linux-iio@vger.kernel.org Subject: [PATCH v2 0/4] Adding scale support to the lpc32xx ADC driver Date: Fri, 15 Mar 2019 10:52:27 +0100 Message-Id: <20190315095231.17001-1-gregory.clement@bootlin.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190315_030201_957501_25EBF864 X-CRM114-Status: GOOD ( 10.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Gregory CLEMENT , Vladimir Zapolskiy , Rob Herring , Thomas Petazzoni , Sylvain Lemieux , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Hello, This is the second version of a series adding the support of the scale feature to the lpc32xx ADC driver. In order to use it we need to have the voltage reference as a device tree property, however in order to be backward compatible, this property is optional and do not prevent to use the driver if missing. I updated the binding documentation accordingly. Gregory Changelog: v1 -> v2: - "dt-bindings: iio: adc: move lpc32xx-adc out of staging" and "iio:adc:lpc32xx use SPDX-License-Identifier" has been merged - split "iio:adc:lpc32xx use SPDX-License-Identifier" in 2 patches one foe sorting and the second one for removal - add reviewed-by from Rob Herring on the binding documentation patch - add default in the switch/case in lpc32xx_read_raw() - no more use scan_type.realbits and directly put the value in the IIO_CHAN_INFO_SCALE case - keep the const for the struct iio_chan_spec and declare 2 of them. - remove the unrelated and bad whitespace change. Gregory CLEMENT (4): iio: adc: lpc32xx: Sort headers iio: adc: lpc32xx: Cleanup headers iio: adc: lpc32xx: Add scale feature dt-bindings: iio: adc: lpc32xx-adc: Document vref-supply .../bindings/iio/adc/lpc32xx-adc.txt | 5 ++ drivers/iio/adc/lpc32xx_adc.c | 59 +++++++++++++------ 2 files changed, 47 insertions(+), 17 deletions(-)