Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3030713pxb; Mon, 18 Oct 2021 06:58:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwoVJRNrlkhwuvpbPLQXpTLETtojSIZTVTUIc5j5YwPp+D/9VVIxbQHjitCTE7XVrXdGua1 X-Received: by 2002:a63:dc14:: with SMTP id s20mr23221336pgg.291.1634565485030; Mon, 18 Oct 2021 06:58:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634565485; cv=none; d=google.com; s=arc-20160816; b=g+39Rv/EOJzIlZ+5EEqcGkfxHaHUOMaQGMq879foglIG8qhb+i2jb409EOUm8cP09L xbUsxeSxRp1ULceChJD+sW8zDm2D0mgVXAc/SG79+WtGSJIICdIxcjakXp7Fx/iZYIXq tdKICso0N5XU5WEakbcOlQQAJdfuJLSFGH2uz9NkdK9EEaL07WH22hqhWbx5m+9VR4hl oZOsSRKcifs0lXm/gGq1xY9J+RbP0e7DcEwKlaCvKf5YsRjpizt24g63nLDdwQXyy8FR lgIJODxq0W+LV6DVWh49ZwCFSfsdhOa70KlzwXOR6YdfGLdkqJvb2K34MqD6en8OQHUN VCmQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=4wvtYVOEbwNDWnaNrSCj+wpoU1rbZvHn2EgyERkN1GQ=; b=gIh9Sg6xY+t50zukXJt7PgTrgXpTnvwQlcM55o8o0R1KJEfSp7F2ABI7walqV4YU1a 7KbGzWGpP3os2ji/01cfYPyBqwqGBXWi6+LFMkLfniJ8da3eD5AHOstI2PCBjUJ1R1VG pB1pAXjqDFte/Ugr3M2JJBIkSzPLN7+XCQqVwGFkTQNGfEZHCbluyRpArnsIiDhGfIju h9FRwJ3SvrtfdjVDHcyMoUVRI46OjDgfFBhextLQ+F5t3hn7EsUvDH1xwHpWVBaTNvZg YNzvRkcK6btur0n1qRY8wfcxKSC1eYjwXhM6sY8ZEBR2conB/neJzEnDowrdwB/dqSTF 43NQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=00iMZdEh; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a17si136439pfh.112.2021.10.18.06.57.51; Mon, 18 Oct 2021 06:58:05 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=00iMZdEh; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234186AbhJRN5g (ORCPT + 99 others); Mon, 18 Oct 2021 09:57:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:57776 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234257AbhJRNzY (ORCPT ); Mon, 18 Oct 2021 09:55:24 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 06F616138D; Mon, 18 Oct 2021 13:40:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634564406; bh=RUSYGcUE9avAjSDc7pZPpcq1IGDFoer+waIvRGTiRgQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=00iMZdEhhc+wUYUyyLg+PYHlaDo4/4vdTrCTUee50d74pLndWJPUioTHQQ4ad6yW6 hUD3c5MHNz9Lkk6Yi/6goLKuJ8RZY3Hgq8kD8I5hft8nGU5DvmDF+pk5wVM/KZ/T4F CrRb6umk3c/yDntYn41zARNwxI+/sWeGorvn4VSw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Miquel Raynal , =?UTF-8?q?Nuno=20S=C3=A1?= , Jonathan Cameron Subject: [PATCH 5.14 078/151] iio: adc: max1027: Fix the number of max1X31 channels Date: Mon, 18 Oct 2021 15:24:17 +0200 Message-Id: <20211018132343.224884198@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211018132340.682786018@linuxfoundation.org> References: <20211018132340.682786018@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Miquel Raynal commit f0cb5fed37ab37f6a6c5463c5fd39b58a45670c8 upstream. 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 Reviewed-by: Nuno Sá Link: https://lore.kernel.org/r/20210818111139.330636-3-miquel.raynal@bootlin.com Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- drivers/iio/adc/max1027.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/iio/adc/max1027.c +++ b/drivers/iio/adc/max1027.c @@ -142,7 +142,6 @@ MODULE_DEVICE_TABLE(of, max1027_adc_dt_i 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), \