Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp82976imm; Thu, 30 Aug 2018 08:50:22 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbgrtmJ8nS4aTVjLJH2jhK6MvliM05cJ6hRG0QEYUP5cZEhjNpBxYIF9Z2Be0LbVE7b8g5n X-Received: by 2002:a17:902:e20b:: with SMTP id ce11-v6mr10926237plb.136.1535644222372; Thu, 30 Aug 2018 08:50:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535644222; cv=none; d=google.com; s=arc-20160816; b=PwJ7tVHTEMdTYRvlqQiAB3dNkXKb37mnGQ1iimRdBEYeNOauoq3wgrpPfNrf6543B5 7l7Bqx+6uaKejgaIktMjkXbEIzahAgdcYh7vXmVd5XYr1ZmZfXExofqDK+dwQBbbK8C6 Fg3axpp7Cq8wsjNkPWhAOHkYQ9CY9O11/1A0oPXsairfxY5gJzIl1c+x+fessKXe8Q9U XIdGlgWVhv5RIHFShp1F3TKDe55MiH9K6fKZoGy/0pSSbnl0V0TyeuhLYZ8vbDELWEQf lfC6+ruHj20IGgk/xyD00+bVrk4f7b9EzNepjkMV8FBpgfbtQ6sISsLgQDpuyFt/zfSq Zi2w== 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=c6Ey3Xe6CN/vhTyJgfjyN2P4uA8psZ12lezphNsl3O8=; b=k6xZvYLD4tR0m64NiJ3QXAuinZUH3CPlXyogCR8K49y/q1f8saKkeHuRTxHpyjrpU+ IFpdGAdv/TZTAZ6BsjNvTaC124cQ3hfqf1XYv96RypVxjpHud5rzrg0MxgRPVbNxm4yL x08eHcaIZaOdsQ79pjhP342O58/fIgo94hhlgs+oJihhEmhZA7xCtWUkAchV29aWNxQF gPI/cBi9mSjxGlZV8uX/edtr++6Rz5h1pgFwB2Ejpv6UcF083W4ChICEeaC1GimshqiB yJmiAS3dUPqepjLPRQwfA1qRpoysz5J98mPwHcaPbFqSZz4j0/JLhqPN3XlgWQWIzHFY FvjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WT2aLqwb; 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 c202-v6si7973904pfc.74.2018.08.30.08.50.07; Thu, 30 Aug 2018 08:50:22 -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=WT2aLqwb; 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 S1727578AbeH3TsM (ORCPT + 99 others); Thu, 30 Aug 2018 15:48:12 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:36115 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727514AbeH3TsM (ORCPT ); Thu, 30 Aug 2018 15:48:12 -0400 Received: by mail-wm0-f68.google.com with SMTP id j192-v6so2528012wmj.1; Thu, 30 Aug 2018 08:45:25 -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=c6Ey3Xe6CN/vhTyJgfjyN2P4uA8psZ12lezphNsl3O8=; b=WT2aLqwbvZWYRL1x96iSTzU+B4CACYgVizEDuSTCdgumBQ2wlbmQC+50S6MwT29d0p O/8kqtcyg8In7OQH5WzkOu3UBR+PhFZth9mUoNsViY0Nt/bJxxqZgEsa0b5mFkdR8J4f wC0dT1XNeCWc0HDsfXOKuzZp0sqPMxguf6bNYS2J3YoFtr0KUmKlT/Ao7sQmz1Jz3nOe 9pAr2pPxwEtMJ10GrdDl8AcOaYlpx7aaAbj+MAGrGPxPH1lAEU61kQZTTtaoXmuc3u0Z nRc3HEtT/oQ3y9Png8XVbSe2BAoFYc0OoFg7RMFXYrVbcsbbrlrJG4lgSntS4BQrdtBF EHcw== 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=c6Ey3Xe6CN/vhTyJgfjyN2P4uA8psZ12lezphNsl3O8=; b=iS/A7cbkMgB8frkrkKyDWw+B2x3UUUWAi0xmzZswau1nhfCloOtaIrnrD4sTTQjTLm x6jTP5tXsrlmCUpKSKnGLQuRBzVS/k/TCQgKrC1E+pS9wj2xrS2bwx9RRnNsRJgH3c1a Rb5C44Ykz5/RzjCVK8Y0xLVdLA8ESgbfuErGsh/SuZ33GXL2GBcoLfI7kvKZzVBMS7yP 43OpozOQQDaZqwNZBMHD8tc4pkGIrzkpw9MnsyU7+0CmPr0H287dU9Rq+z1J6bPfo+bB fMon0s2dj+TgWI9Trb7nIVm/Rr+epTpOsJM/3vNI9hnyVUP3X9Qj3oqwhs/1I0zJ09Vu c07w== X-Gm-Message-State: APzg51AhUkf7zyshjm0JW1Mr5gIg23elCEbx4i+CJg6O2Mq4CbPdRcLx im4narmlVkT9nleqxrI66Zw= X-Received: by 2002:a1c:1f48:: with SMTP id f69-v6mr2113339wmf.152.1535643924712; Thu, 30 Aug 2018 08:45:24 -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.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Aug 2018 08:45:24 -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 05/30] iio: adc: move SUN4I_GPADC_CHANNEL define to header file Date: Thu, 30 Aug 2018 17:44:53 +0200 Message-Id: <20180830154518.29507-6-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 are moving the SUN4I_GPADC_CHANNEL define to the header file. Signed-off-by: Philipp Rossak --- drivers/iio/adc/sun4i-gpadc-iio.c | 9 --------- include/linux/mfd/sun4i-gpadc.h | 9 +++++++++ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/iio/adc/sun4i-gpadc-iio.c b/drivers/iio/adc/sun4i-gpadc-iio.c index d95dd0fde2a6..666329940e1e 100644 --- a/drivers/iio/adc/sun4i-gpadc-iio.c +++ b/drivers/iio/adc/sun4i-gpadc-iio.c @@ -109,15 +109,6 @@ struct sun4i_gpadc_iio { struct device *sensor_device; }; -#define SUN4I_GPADC_ADC_CHANNEL(_channel, _name) { \ - .type = IIO_VOLTAGE, \ - .indexed = 1, \ - .channel = _channel, \ - .info_mask_separate = BIT(IIO_CHAN_INFO_RAW), \ - .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE), \ - .datasheet_name = _name, \ -} - static struct iio_map sun4i_gpadc_hwmon_maps[] = { { .adc_channel_label = "temp_adc", diff --git a/include/linux/mfd/sun4i-gpadc.h b/include/linux/mfd/sun4i-gpadc.h index 139872c2e0fe..54c7c9375c1b 100644 --- a/include/linux/mfd/sun4i-gpadc.h +++ b/include/linux/mfd/sun4i-gpadc.h @@ -90,6 +90,15 @@ /* 10s delay before suspending the IP */ #define SUN4I_GPADC_AUTOSUSPEND_DELAY 10000 +#define SUN4I_GPADC_ADC_CHANNEL(_channel, _name) { \ + .type = IIO_VOLTAGE, \ + .indexed = 1, \ + .channel = _channel, \ + .info_mask_separate = BIT(IIO_CHAN_INFO_RAW), \ + .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE), \ + .datasheet_name = _name, \ +} + struct sun4i_gpadc_dev { struct device *dev; struct regmap *regmap; -- 2.11.0