Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp3463872pxb; Mon, 30 Aug 2021 02:57:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNmW/TpJD/3QgKl0GeUhsrDuL4joULBQoVRQK3Qayvxre8FV0gL5Wft+OIWnUBHcGVTNRR X-Received: by 2002:a6b:e712:: with SMTP id b18mr17474650ioh.186.1630317476935; Mon, 30 Aug 2021 02:57:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630317476; cv=none; d=google.com; s=arc-20160816; b=G45Ud/+XDnFUB4sOTu3lCL7vbiSIZIzvyGxniy2o8FQfmIkGUGOe18Ep0iwsA2UIRY oK+ghVUvpDh4ERuXUAJn4MhMzIobLPV3WR3Km+yc8MjgK9M/s91lVfAQ7Y7vwSFlfKHh /KdOTWTACHzwdOnKqLajzk0+oQSUzJbuvx5M0+sGcve2KxqZbFVyhHRN4j3SkdD5ishF uRnrVS1PIBdR1ANAFyiGixV6vkDmD6vAldVofFEWaT21nUMigm/LsRhvFTU3IvFEvUD9 oQSVr8goIhAOMOZs5Cr7RhqTpI2yzEER8ka3Eap7nzxbRWcItQeZNWV5bmEo+zNXBG7K ZhkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=ZlwbpFD9EF+Sr+RuQtzvRgVrjP+JiZyuQGH/yqoEwBY=; b=y2rJrcbEyqFxE7eZkqPalZYsUvB/OSFanAOCGrz+PZBTwX1V29BF3c/4eYBfrbQxBy ftUNW7rDt8WsgC5YPph5hGC7Q+k7hQpRFStzttxLnZe49aoEn6gTfJJ/Y0FxqPbyQlPZ vGtzTA/sbwScLCWJuY8KCqqT7UK+/lc+hjwz2t5XxiN4aqYIkwEcGXq4+35SNcyCi4MK Pn7SglwYh1VM86/01gtJ9pF6JuSyjELcLnA6dHIG8zsx2Gc3MMjiJm6Pt2qe9DkkE3vk WW8IRh4TL0E2HA0QAxbqSAaV+0q1Kjw2ow4RcnEyZuDiswQIjVHex+dHZ8sDYvG6lyhy dxaA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 190si14880258jau.70.2021.08.30.02.57.45; Mon, 30 Aug 2021 02:57:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235063AbhH3J6B convert rfc822-to-8bit (ORCPT + 99 others); Mon, 30 Aug 2021 05:58:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:49080 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229901AbhH3J6A (ORCPT ); Mon, 30 Aug 2021 05:58:00 -0400 Received: from jic23-huawei (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (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 50A6660525; Mon, 30 Aug 2021 09:57:03 +0000 (UTC) Date: Mon, 30 Aug 2021 11:00:15 +0100 From: Jonathan Cameron To: "Sa, Nuno" Cc: Miquel Raynal , Lars-Peter Clausen , Thomas Petazzoni , "linux-iio@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" Subject: Re: [PATCH 02/16] iio: adc: max1027: Fix the number of max1X31 channels Message-ID: <20210830110015.787e0abe@jic23-huawei> In-Reply-To: References: <20210818111139.330636-1-miquel.raynal@bootlin.com> <20210818111139.330636-3-miquel.raynal@bootlin.com> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 20 Aug 2021 07:03:40 +0000 "Sa, Nuno" wrote: > > -----Original Message----- > > From: Miquel Raynal > > Sent: Wednesday, August 18, 2021 1:11 PM > > To: Jonathan Cameron ; Lars-Peter Clausen > > > > Cc: Thomas Petazzoni ; linux- > > iio@vger.kernel.org; linux-kernel@vger.kernel.org; Miquel Raynal > > ; stable@vger.kernel.org > > Subject: [PATCH 02/16] iio: adc: max1027: Fix the number of max1X31 > > channels > > > > [External] > > > > The macro MAX1X29_CHANNELS() already calls > > MAX1X27_CHANNELS(). > > Calling MAX1X27_CHANNELS() before MAX1X29_CHANNELS() in the > > definition > > of MAX1X31_CHANNELS() declares the first 8 channels twice. So drop > > this > > extra call from the MAX1X31 channels list definition. > > > > Fixes: 7af5257d8427 ("iio: adc: max1027: Prepare the introduction of > > different resolutions") > > Cc: stable@vger.kernel.org > > Signed-off-by: Miquel Raynal > > --- > > drivers/iio/adc/max1027.c | 1 - > > 1 file changed, 1 deletion(-) > > > > diff --git a/drivers/iio/adc/max1027.c b/drivers/iio/adc/max1027.c > > index 4a42d140a4b0..b753658bb41e 100644 > > --- a/drivers/iio/adc/max1027.c > > +++ b/drivers/iio/adc/max1027.c > > @@ -142,7 +142,6 @@ MODULE_DEVICE_TABLE(of, > > max1027_adc_dt_ids); > > MAX1027_V_CHAN(11, depth) > > > > #define MAX1X31_CHANNELS(depth) \ > > - MAX1X27_CHANNELS(depth), \ > > MAX1X29_CHANNELS(depth), \ > > MAX1027_V_CHAN(12, depth), \ > > MAX1027_V_CHAN(13, depth), \ > > -- > > 2.27.0 > > Reviewed-by: Nuno Sá > I guess we don't have many users of these devices as I would have expected this to blow up spectacularly. Ah well. Applied to the fixes-togreg branch of iio.git Thanks, Jonathan