Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp119438imm; Thu, 30 Aug 2018 09:42:18 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaQ0wM3Ex8YGB5fcVfZ8vpaEuRj9Ktyl9uK7/6YeK9jntRXNVd31oCQCUM03MIiqhpHUcLl X-Received: by 2002:a62:4898:: with SMTP id q24-v6mr11409394pfi.22.1535647338846; Thu, 30 Aug 2018 09:42:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535647338; cv=none; d=google.com; s=arc-20160816; b=XZ0RAFl6+MvR9n08tgL/9mAZP/PUoCbNmYl+cSUn3vkvbLp5MR07/bWRXo9usf144D 3jojfW2mWIIB+QclO61OkVJZ48AGcNC5CP6D3eFx8pWNNtsCXQKRHhkrLpv7uneE6NvM 9cm1U8w8okaCcVExzP/9K2Wb7bp/x+rXsgDNIxiPCcHY6RKINkZzljPga3dsg+sC1+9X hliq0i0GRZ4koul7z635UfndRcpk/KoX0W7p0dxmp9Jfi3CGLnFPE9YhYwuh95Z1PvH/ PV9tfJc9t3gWVCkRBZej+E0kXzeFQzLsgfqBr74+lASpw5U7F4kcMapC1lsTke5U5Dj1 zj5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:if-you-cant-reach-me-try:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=tObQy3JeXCOd57rx9gOLeNlHUFl4Z5Y2aobHNYhyODQ=; b=qi22e+mJAMnX7iOZo/xtDoACV/AMHfu6fRp8ZMn7WdM5tTec/HPRvF/7IEWF7gx16B yrvcVCS95C0TohNtcl+sMgvZZ/9f7xj9DQanB8hxbXPQrF6bqFCv4s1WFS6AOT3+qHDA M70WcKs1fWYmufMOpOK9mwfcEF5Vmi+iX8YXvYgAqYvsqG9GRF+JKEkrYDzNemDQTq/y HbX2aH/b8H8ehkXdQA9aSX1/fsBvmhpL0MLSU00a3eodmcC/nSYiVKC+V3lMYqxyj0pC gzWS3mOjHieTrbhxaMhCNOYfH1CGpEdOrToiw+2WsqsezP59CzA+IrC32RbMnHO8Gv5l dGPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b="YG/q4GFL"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=megous.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u64-v6si7087481pgu.533.2018.08.30.09.42.03; Thu, 30 Aug 2018 09:42:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b="YG/q4GFL"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=megous.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727718AbeH3UnU (ORCPT + 99 others); Thu, 30 Aug 2018 16:43:20 -0400 Received: from vps.xff.cz ([195.181.215.36]:35696 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727073AbeH3UnT (ORCPT ); Thu, 30 Aug 2018 16:43:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1535647218; bh=h4ibOMxQl4CVlR0QB3eMgqhl7VypoEdSb9ku3ReK7vM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YG/q4GFLmz0fhj/WJzkR/JmEFfaJS/Qp1L36sUcuHVMCn/gmTqMCi7rdSxX0lOlnC OLDWajbBRdgtDGsCcO6qkK9XknFI31Gr4v4dD9dm+CmjTaA++9Ajf8v/vyKaDtepcZ O6syaKdaTNEniYzUhVYA3x5ZWv3YNPgfXlOWTpFI= Date: Thu, 30 Aug 2018 18:40:17 +0200 From: =?utf-8?Q?Ond=C5=99ej?= Jirman To: Philipp Rossak Cc: lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@bootlin.com, wens@csie.org, linux@armlinux.org.uk, jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, eugen.hristev@microchip.com, rdunlap@infradead.org, vilhelm.gray@gmail.com, clabbe.montjoie@gmail.com, quentin.schulz@bootlin.com, geert+renesas@glider.be, lukas@wunner.de, icenowy@aosc.io, arnd@arndb.de, broonie@kernel.org, arnaud.pouliquen@st.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: Re: [linux-sunxi] [PATCH v3 09/30] iio: adc: Threat A33 as thermal sensor and remove non thermal sun4i channel Message-ID: <20180830164017.n7rcxcy2jj4mijpr@core> Mail-Followup-To: Philipp Rossak , lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@bootlin.com, wens@csie.org, linux@armlinux.org.uk, jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, eugen.hristev@microchip.com, rdunlap@infradead.org, vilhelm.gray@gmail.com, clabbe.montjoie@gmail.com, quentin.schulz@bootlin.com, geert+renesas@glider.be, lukas@wunner.de, icenowy@aosc.io, arnd@arndb.de, broonie@kernel.org, arnaud.pouliquen@st.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com References: <20180830154518.29507-1-embed3d@gmail.com> <20180830154518.29507-10-embed3d@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180830154518.29507-10-embed3d@gmail.com> If-You-Cant-Reach-Me-Try: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 30, 2018 at 05:44:57PM +0200, Philipp Rossak wrote: > We want to use this driver mostly as thermal sensor, that still supports > the adc for the older chips, thus we threat the A33 as thermal sensor. > We also remove the adc channel without thermal support. Threat -> treat (in the title and in the message body too) > Signed-off-by: Philipp Rossak > --- > drivers/iio/adc/sun4i-gpadc-iio.c | 19 ------------------- > 1 file changed, 19 deletions(-) > > diff --git a/drivers/iio/adc/sun4i-gpadc-iio.c b/drivers/iio/adc/sun4i-gpadc-iio.c > index ab474ce86fb6..658a7e3e3370 100644 > --- a/drivers/iio/adc/sun4i-gpadc-iio.c > +++ b/drivers/iio/adc/sun4i-gpadc-iio.c > @@ -123,23 +123,6 @@ static const struct iio_chan_spec sun4i_gpadc_channels[] = { > }, > }; > > -static const struct iio_chan_spec sun4i_gpadc_channels_no_temp[] = { > - SUN4I_GPADC_ADC_CHANNEL(0, "adc_chan0"), > - SUN4I_GPADC_ADC_CHANNEL(1, "adc_chan1"), > - SUN4I_GPADC_ADC_CHANNEL(2, "adc_chan2"), > - SUN4I_GPADC_ADC_CHANNEL(3, "adc_chan3"), > -}; > - > -static const struct iio_chan_spec sun8i_a33_gpadc_channels[] = { > - { > - .type = IIO_TEMP, > - .info_mask_separate = BIT(IIO_CHAN_INFO_RAW) | > - BIT(IIO_CHAN_INFO_SCALE) | > - BIT(IIO_CHAN_INFO_OFFSET), > - .datasheet_name = "temp_adc", > - }, > -}; > - > static const struct regmap_config sun4i_gpadc_regmap_config = { > .reg_bits = 32, > .val_bits = 32, > @@ -444,8 +427,6 @@ static int sun4i_gpadc_probe_dt(struct platform_device *pdev, > return -ENODEV; > > info->no_irq = true; > - indio_dev->num_channels = ARRAY_SIZE(sun8i_a33_gpadc_channels); > - indio_dev->channels = sun8i_a33_gpadc_channels; > > mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); > base = devm_ioremap_resource(&pdev->dev, mem); > -- > 2.11.0 > > -- > You received this message because you are subscribed to the Google Groups "linux-sunxi" group. > To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe@googlegroups.com. > For more options, visit https://groups.google.com/d/optout.