Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp358384pxb; Wed, 18 Aug 2021 04:13:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCrKqM8fCEk3P4D2gQ9fhlaxoFBur0rSRdl1nAt9hu9JTp/03HwSYd4E42Zv9n7HI+Ncur X-Received: by 2002:a92:740f:: with SMTP id p15mr1605331ilc.181.1629285182145; Wed, 18 Aug 2021 04:13:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629285182; cv=none; d=google.com; s=arc-20160816; b=gXJDpMyNYlapfOIlJ99TTZ8CnTuosSp5S8UU714n9ehFFM+GXKLjtH+S+EYh0iL9sz voGHASdxDILcqBXaqWgflIKdKA9hfHngu3wWkyBpNVahyUI0WHt0WFZnruHXE4qLiK9M TmAhqCawiT7TkKEUDsMD5cog+kO2YzKUTmVu3TIIlEHfBaWs5sZSwICXFBXU2XSpSeIh Q6DpcL8KuYSwVTjHo0BvMbzcla7lbbLV7bengVcZSqbg+rYL4JzCAqU6qqTS0e2zMALb 7fH0PR5bKST0OkyNGwjiAQKI1yCIDFx8jtwL6NkgwnSSNXTZJ+j4Ypbu2KAcB8HPXYMe rvaQ== 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:date:subject:cc:to:from; bh=vJh2B9uDySGzPDP0Y08yfv1qvCh2M109S18qnbGnFHE=; b=Ns5TJRKXQr5la0NHjL8UguCDTT5AFGPNjihjmNvga/flf8GmzesGYnhu2yUFjIHmc0 Iur01GBSEhPW6pK7FML0YGCD5FvWQzL0pDuc3up2SdSsPqbDfEhF7NQwHPeAy1cQvr18 0UlUniT0gCAG8J4CHo/gVWyQrt8e9UP6n4OPw+rhjbLHZ+CAM/3Oskr6jepSBtiy2kc5 Sei0v3IgmIQfbTHzfHiDLe/biXTDO3EzZn9qc/k+sTeizbZtZIUnMcdMWlpjPI9eDfTv qM7PnAShcB30zbvm6xUSUmAML1u4042uigSlshUWcFevX4zE6e/yFbsmtbJJVrwutRL7 J0Cg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p17si5294494jak.93.2021.08.18.04.12.50; Wed, 18 Aug 2021 04:13:02 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235644AbhHRLMZ (ORCPT + 99 others); Wed, 18 Aug 2021 07:12:25 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:37771 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235253AbhHRLMR (ORCPT ); Wed, 18 Aug 2021 07:12:17 -0400 Received: (Authenticated sender: miquel.raynal@bootlin.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 2E47260009; Wed, 18 Aug 2021 11:11:41 +0000 (UTC) From: Miquel Raynal To: Jonathan Cameron , Lars-Peter Clausen Cc: Thomas Petazzoni , linux-iio@vger.kernel.org, , Miquel Raynal , stable@vger.kernel.org Subject: [PATCH 02/16] iio: adc: max1027: Fix the number of max1X31 channels Date: Wed, 18 Aug 2021 13:11:25 +0200 Message-Id: <20210818111139.330636-3-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210818111139.330636-1-miquel.raynal@bootlin.com> References: <20210818111139.330636-1-miquel.raynal@bootlin.com> 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 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