Received: by 10.223.176.46 with SMTP id f43csp820098wra; Fri, 26 Jan 2018 07:25:29 -0800 (PST) X-Google-Smtp-Source: AH8x225js0Z0Zid2vl/MK4L2R5Zh4YK836wu1xuY9m+4K8qqbOdZO9BqogfKDVps85nMJii+T98E X-Received: by 10.99.174.69 with SMTP id e5mr16154280pgp.263.1516980329883; Fri, 26 Jan 2018 07:25:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516980329; cv=none; d=google.com; s=arc-20160816; b=sAh6yzHpIa+VPL0li4YVjHYb0+5p118gIFuVPgTzwz9xfG/2/FOQjOQLIDXbvvJAoC IdWafFCk7ocPH0i9d/Aucu86afht/kN2znN8P7Q2eIeGI7hCzMADpudNhHwpFFkG/fAS ZzVRpP7HPM5UdJbu8LsF6ShIhmG2D1FobRtTpACKrH8rYr5xX9UcZsLGJKk38PVHVun0 enCFF32RpaApML+fjzPQ2zM9V6hWBALQwY5EzaGhJzE9Mnfvalzp2Hdsj4T8AU7gmL7h /89nVIt/z64W5f7jXPVnK0/2pU+xuWkhrIZTqgnaU6Fo4mtFsvBislb2JPaZ2pb87y2s tLSg== 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=0Ipgrszqc5ARG/zHC7T+tljsk3DWYmnOQpNZqyBOVJw=; b=FCnCazADNDFfc1coK3wX/KmrLM3JHhqsYSsw75e8yqUjAqBhVNtf75pK4al+VzrTa3 x/UQKhHxx0XqeEqCZgt20442PcLplsaQ6TjTVtQ5TibB06lNIkQ7pq3cmawPbJYPciQN f3Z0sDUsC35tmXbTF9rhHFYrB+iNFSmRf4QLWlz3s1sFK31JAq+Agrmhyurrji7PWPc+ yxwufxszXvMLYRTmadPl2c8HDK8ppN+wkHGB7Ra+kTZwE76N1uqYAlmJuseldEhlpOJM XqhDgKbgIG0DB4XTWea2wyCLRS3K2UBwtPxpa5YKLd1mZjRoHAsDqnlmqoLVAx2dqBli Tu6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hrP/GihR; 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=NONE 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 v207si3121756pgb.47.2018.01.26.07.25.15; Fri, 26 Jan 2018 07:25:29 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hrP/GihR; 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=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753694AbeAZPXl (ORCPT + 99 others); Fri, 26 Jan 2018 10:23:41 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:52467 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751738AbeAZPTw (ORCPT ); Fri, 26 Jan 2018 10:19:52 -0500 Received: by mail-wm0-f66.google.com with SMTP id g1so1954611wmg.2; Fri, 26 Jan 2018 07:19:51 -0800 (PST) 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=0Ipgrszqc5ARG/zHC7T+tljsk3DWYmnOQpNZqyBOVJw=; b=hrP/GihRvJ0j1+oyhuEM9I94x1oEdi3zsHDqSgdDVVKCvHlKVMmtNIFUNRzXAfnWAE U7fZ0oRBw74zDxlQdpNyX2kuK8q3Z+vwr5BUQ/LlnbZwMTGexuWfRpfz1XtPrKs+M/BS hnGmorzz+XpBeWnAl4qwWF3wVLg9+gHlkH4rYQdw02G8Fw3t5IinCGZWsuWAmwtdxN4x oRpHRmIEiE5wyl+OyywW4TVJeTuUgyd6ioumVzEWX9Ee2z0Hn/dcJO/OAmnxBHIoI5mF uuiZklXY+KaFVjZ9oXSCrSlPv6c8SGWlb7C1iECO4Gby/i4TefzHlVav4dG6W7jF2xpN ZsNg== 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=0Ipgrszqc5ARG/zHC7T+tljsk3DWYmnOQpNZqyBOVJw=; b=Pf9ybwHafYMI+6NtWSqNGldM7OPTzaYpl+4S6kHmpFIeJSW1+ikTD/2vkAc6+9oX1j Y2s+vL69yL4yCCYkfTrdrHQDaHKqnIuGy7mmpKVd1IHos36ytFyVbASCTDsdgTOy7Now yM33+/6kxBJhqKlUua/2sAIKblwnCWpdT++wkNS7sxKVtR1OWDjpyCLNhTLvbhQGDEJk kmx56H4+/4FIk72nYLdYC5lBE4K7/ov320A9Xd2mMtZwWM9t1w8rqYnxJU1oyNcVBGhZ NQYkaFDfbNwSzBoM+CQS/Sz1YR4uor3FgNac2CBIrlxvsOUmAmYCDqMch9YzSGo+adL0 RKnA== X-Gm-Message-State: AKwxytfpXIa9e6GimSjIMlEkZXijyNfT0FSuE94Y0KEJfuPVztCkbdV2 +92Lo00E42UJVwKN9sCq5kY= X-Received: by 10.28.160.20 with SMTP id j20mr10742088wme.148.1516979990663; Fri, 26 Jan 2018 07:19:50 -0800 (PST) Received: from debian-laptop.fritz.box (p578F04D2.dip0.t-ipconnect.de. [87.143.4.210]) by smtp.gmail.com with ESMTPSA id e15sm4586130wmd.26.2018.01.26.07.19.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Jan 2018 07:19:50 -0800 (PST) From: Philipp Rossak To: lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@free-electrons.com, wens@csie.org, linux@armlinux.org.uk, jic23@kernel.org, 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 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 03/16] iio: adc: sun4i-gpadc-iio: rename A33-specified registers to contain A33 Date: Fri, 26 Jan 2018 16:19:28 +0100 Message-Id: <20180126151941.12183-4-embed3d@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180126151941.12183-1-embed3d@gmail.com> References: <20180126151941.12183-1-embed3d@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 -- 2.11.0