Received: by 10.223.176.5 with SMTP id f5csp1418797wra; Sun, 28 Jan 2018 00:35:38 -0800 (PST) X-Google-Smtp-Source: AH8x22556q0PkTotITu/eQk0ShQqAdMCtg6LeYw3ar2dToid3SzKFH5Ii198N8pYQlcLdlr+sid3 X-Received: by 10.98.112.4 with SMTP id l4mr23510701pfc.8.1517128538673; Sun, 28 Jan 2018 00:35:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517128538; cv=none; d=google.com; s=arc-20160816; b=F4h0O7Ks9xSV5R3jHk5Z24Tc1d1z776xZ0/RhNwXWeZIbSLLFrnC/9rzWMl+rzA8Bh x6HPw9zO1IBs4Nsq/Sj+THEOCdahD5KnK9reJJAeGAwbggkTaePqIdvcNfKgtfpw6219 DuSVMEHunt7XdTb89JX/V6GyALboJmHe94kWB9uz1FCuVjS8cUhdBFwiLfevEZk0QtLG iUOZTeRRGutn7v4u5mpNwuK0oaDcPxJ4C4Por7DJ2gwBCSoOQnhHhEsCSKykvVbbb6ii 9NAa13okdWOa22Ka8GIlIyxreJJZr0DuqwxWERYL+yZdJx8i508xSoxlWMpcWzRpJMej N+0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dmarc-filter:arc-authentication-results; bh=h18euyodMZCnvxSx78+2aTnK3hBpyAWpQWbu83HQTSo=; b=SNhtTymimrE1PMRLYXBN+J54WlDIr9jh8P4DqH/iL+pNetQysbk71KKq57Bslm0fn2 6dWTjQN0cJ2I8HMhD0hrAhIz7aFRBTTGcwfIv2dpPEZ1IME75o9q1xhhrdUXK+QYVJrL 0bH5yveAR8RgWKjZ1VqZVU8UI2FcedVwCf4JdCJwFo2Byff6d6m++c8+tR3hGZJJJyVE UgpplN26Ade21a338jEMGiuPGgnE5QQ6i3amoM+lffhTC5/l/1zZEx6VPkQrKwur7SIB DUkUepv86Xi6z9dku+wuUuKZhW1uPbBxl6ZFpxV3kMGSAiwskIvE79UltumDEXqb4lGC 8I7g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r2si5420055pge.772.2018.01.28.00.35.24; Sun, 28 Jan 2018 00:35:38 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752517AbeA1IfA (ORCPT + 99 others); Sun, 28 Jan 2018 03:35:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:35622 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751559AbeA1Ie6 (ORCPT ); Sun, 28 Jan 2018 03:34:58 -0500 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B5B9E21796; Sun, 28 Jan 2018 08:34:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B5B9E21796 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=jic23@kernel.org Date: Sun, 28 Jan 2018 08:34:53 +0000 From: Jonathan Cameron To: Philipp Rossak Cc: lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@free-electrons.com, wens@csie.org, linux@armlinux.org.uk, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, davem@davemloft.net, hans.verkuil@cisco.com, mchehab@kernel.org, rask@formelder.dk, clabbe.montjoie@gmail.com, sean@mess.org, krzk@kernel.org, quentin.schulz@free-electrons.com, icenowy@aosc.io, edu.molinas@gmail.com, singhalsimran0@gmail.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: [PATCH 03/16] iio: adc: sun4i-gpadc-iio: rename A33-specified registers to contain A33 Message-ID: <20180128083453.5d384742@archlinux> In-Reply-To: <20180126151941.12183-4-embed3d@gmail.com> References: <20180126151941.12183-1-embed3d@gmail.com> <20180126151941.12183-4-embed3d@gmail.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 26 Jan 2018 16:19:28 +0100 Philipp Rossak wrote: > From: Icenowy Zheng > > As the H3 SoC, which is also in sun8i line, has totally different > register map for the thermal sensor (a cut down version of GPADC), we > should rename A23/A33-specified registers to contain A33, in order to > prevent obfuscation with H3 registers. Currently these registers are > only prefixed "SUN8I", not "SUN8I_A33". > > Add "_A33" after "SUN8I" on the register names. > > Signed-off-by: Icenowy Zheng > Reviewed-by: Chen-Yu Tsai > Acked-by: Maxime Ripard > Acked-by: Lee Jones Acked-by: Jonathan Cameron (for the trivial change in the IIO driver) > --- > drivers/iio/adc/sun4i-gpadc-iio.c | 2 +- > include/linux/mfd/sun4i-gpadc.h | 6 +++--- > 2 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/iio/adc/sun4i-gpadc-iio.c b/drivers/iio/adc/sun4i-gpadc-iio.c > index 04d7147e0110..03804ff9c006 100644 > --- a/drivers/iio/adc/sun4i-gpadc-iio.c > +++ b/drivers/iio/adc/sun4i-gpadc-iio.c > @@ -88,7 +88,7 @@ static const struct gpadc_data sun6i_gpadc_data = { > static const struct gpadc_data sun8i_a33_gpadc_data = { > .temp_offset = -1662, > .temp_scale = 162, > - .tp_mode_en = SUN8I_GPADC_CTRL1_CHOP_TEMP_EN, > + .tp_mode_en = SUN8I_A33_GPADC_CTRL1_CHOP_TEMP_EN, > }; > > struct sun4i_gpadc_iio { > diff --git a/include/linux/mfd/sun4i-gpadc.h b/include/linux/mfd/sun4i-gpadc.h > index 139872c2e0fe..78d31984a222 100644 > --- a/include/linux/mfd/sun4i-gpadc.h > +++ b/include/linux/mfd/sun4i-gpadc.h > @@ -38,9 +38,9 @@ > #define SUN6I_GPADC_CTRL1_ADC_CHAN_SELECT(x) (GENMASK(3, 0) & BIT(x)) > #define SUN6I_GPADC_CTRL1_ADC_CHAN_MASK GENMASK(3, 0) > > -/* TP_CTRL1 bits for sun8i SoCs */ > -#define SUN8I_GPADC_CTRL1_CHOP_TEMP_EN BIT(8) > -#define SUN8I_GPADC_CTRL1_GPADC_CALI_EN BIT(7) > +/* TP_CTRL1 bits for A33 */ > +#define SUN8I_A33_GPADC_CTRL1_CHOP_TEMP_EN BIT(8) > +#define SUN8I_A33_GPADC_CTRL1_GPADC_CALI_EN BIT(7) > > #define SUN4I_GPADC_CTRL2 0x08 >