Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp82438imm; Thu, 30 Aug 2018 08:49:37 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZOrmkQbcJ3EgeF9aLA+cNGl9G0js/E5q+zjBLZ7gKVQV2pdCFvb+C2sdJCn75VCnxpTUDA X-Received: by 2002:a62:3644:: with SMTP id d65-v6mr10926122pfa.133.1535644176960; Thu, 30 Aug 2018 08:49:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535644176; cv=none; d=google.com; s=arc-20160816; b=Nb1F/zjnbsKpA1uHo8ZtEQ9uKa7IdknsMsyX2JgBOE9iWntzF+iehE5tvBIzTtFP4D UBppNrI/KwRS41sLK9u5xukJ0EESIVCmh24q2dq4RaqAa621nch5lHhgUl7AFdYqOrxn w2FpA5UFSRJ8E5MDOyYJG5ALeV+AmvXo+FaNuxfebJqd8F41EFOIx8JJ+6wolcRv7xc/ wh6tDPNeF5RNMk9z0x7a3gQK+tZm1Shmz1HOPeTBKn5cNkTCvGqCA5GfyKvUxOg3BBy1 Jga3uymDK0Y8no5fJ9q8q3ncFRKvafVBahpeYgwJWsJ+/BLUQHqgPjCNn7GiDSr88i1p lvfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=5XND9vHjfuJCOwJpFz7zMX/u/hpV4Qa0BGP58J/DvOk=; b=y5JJrhahnCfWuxyHFtYjXlSSU7rQWiMQQ73Juy6U4p+/kj+clPEnwNNYAvT1Io/yXS 9ISeugA+n0ami02FpRMILQz8eexaHf9TKQ6vlwqV83zavG9AQeSVzQHx9ya7easz0tTc 2o0UjifOwuXrJZnmTmmiHeIhsvKYkCRoOiRcbOvAiR5g3KNYk+F/7JImH2ImP22HH1SR FMXd8RVrR1nxyP9IE1TJXTYJACsGdnBxzGnUUnwfYUg6UniZnnUCvB6wDwYBbyLKWYPe 54GoMdcfOnMbMBaQj6iX593+j1lCDwFN0hzYi+RtFsPQz+XTGM0PhFi9bsjlulfFY8vt +yxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TNWOp0PA; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v23-v6si6916413plo.19.2018.08.30.08.49.22; Thu, 30 Aug 2018 08:49:36 -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=@gmail.com header.s=20161025 header.b=TNWOp0PA; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727636AbeH3TsQ (ORCPT + 99 others); Thu, 30 Aug 2018 15:48:16 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:43347 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727602AbeH3TsP (ORCPT ); Thu, 30 Aug 2018 15:48:15 -0400 Received: by mail-wr1-f67.google.com with SMTP id k5-v6so8500348wre.10; Thu, 30 Aug 2018 08:45:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=5XND9vHjfuJCOwJpFz7zMX/u/hpV4Qa0BGP58J/DvOk=; b=TNWOp0PAQHFrUDVCcHK0c4JtKL0NoAr5sk9Sj+OC0whe1rqb0aWUX2gGlSE0Vm+aMp j5Ti6Sc7JwEFNxgodD1mBSZDfxesQvlBe6cqTSBS8eHPj8NkJ4X6gqUUfC4et2Rih3SR TNVIpnaevlZtr2lMfAVo7sGUg/dvjSfUO3V73cTNsDLBctf2ET2j1nth9a05CdtkdlZ9 o+U/hl+6+3TM83z0q2vQXzMSen+DzFC10If2E2/1lGhCrZP9kSt4ZRiQc+6E2+3Z1nhL KnIXLIcBGl8+0l4QawJdXQeGcIiZFMz6B+Fj9e0HgsLXQ8ELyS0qruBhznyrSX/cTRpp ddKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=5XND9vHjfuJCOwJpFz7zMX/u/hpV4Qa0BGP58J/DvOk=; b=HrsyCCrQPw01/4lKluHxg8JA0S9lu6s70wXJlV9cpZJI73taE4fFSTJabskN4E+nRz OrwVL6vZ1+pTBmdzUS93mgSoS3Dk7jRSyF056T2tbG+jFdxf4JpsF6qrJCA92FgiI0Xt y2RZ/ztFfFU89pN5U/xJmv5XPelPOLmEySxqFZ+vNxmGL+QhrjEcL8vHK3rI2msjwqQh DucbBKO1Ot5/AY/kcsLi6ZhaCqmfP9/TNXlNkyl+u+/Dhuqf2golqYww5yxcJVZ/C5WW y5YrKkSXKDPEv+wDfYYVAprKidQY5ZX7xFS1J2K6zx+OJaYwgt2fHzeey61vUmSbeHYH +xbA== X-Gm-Message-State: APzg51CzCH4JEFgsiAJVFVaG+bFNP/dTaSV25ccK+wW48lQY4NyjBGkm Bmd50UDiPd4nOSXbxekNbms= X-Received: by 2002:adf:e648:: with SMTP id b8-v6mr8388682wrn.254.1535643928697; Thu, 30 Aug 2018 08:45:28 -0700 (PDT) Received: from debian-hp.wlan.uni-ulm.de (eduroam170-020.wlan.uni-ulm.de. [134.60.170.20]) by smtp.gmail.com with ESMTPSA id j20-v6sm1362759wmh.9.2018.08.30.08.45.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Aug 2018 08:45:28 -0700 (PDT) From: Philipp Rossak To: 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 Cc: 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: [PATCH v3 09/30] iio: adc: Threat A33 as thermal sensor and remove non thermal sun4i channel Date: Thu, 30 Aug 2018 17:44:57 +0200 Message-Id: <20180830154518.29507-10-embed3d@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180830154518.29507-1-embed3d@gmail.com> References: <20180830154518.29507-1-embed3d@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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