Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5937599rwb; Tue, 22 Nov 2022 06:53:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf4HqeqbIvP+59THW0PjFegjVV64ZfnlSPvk1MNSnNAxMmFJa4cRO5zhGlKOvaKllownaa80 X-Received: by 2002:a17:906:3c04:b0:7ae:359a:965 with SMTP id h4-20020a1709063c0400b007ae359a0965mr3362128ejg.621.1669128805536; Tue, 22 Nov 2022 06:53:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669128805; cv=none; d=google.com; s=arc-20160816; b=ji9auHobC8Q59gn39vFOYdKVCDh8hMampxO3SBI6g7D0pRyxRymP/niSCQ/a7JnSZz E2ZVrdSOXBaWsr4AMLAbOdnAmJkAmfa9vHmkdiVJ7btRV4jWzDuYLKzUNIK1Hjz3qU7p FB+gFK9qRtLSbIorNwhil/2I1LJ2EHQkth+a1mdLRwfuPRn+qVraOQY46TR0wsamVtrX UVPdKexC4NIQ/g6Rnd9e0JZuqsv9l9mO3ky+DWRqyFlA3C7cwZMph7hgTE4YOlBd8b0T 36woeMYG5SMFbF+oI04nbyVx0xfFHFJE8mzUz1+awOyKXUCQiVOD3YLMjWjZmbufPMbq NckQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=9Kacw5FrPZZ3AdW9d8qAJ/kGPVPvKgJmlT/4YyZBVx8=; b=O+WQd0IG9lQoMY6GWgWZ+TCtTY2G3Wh7DV/+uwQeAcDm4kyLz4j7HOtKV9iP97DWv2 yV2aUGVAL7i/3VrnrATm1KQeO8K/308M8z9R8kJ6E7Kzd6OTIe7doG602SbCmKtgfIKV 6WrCJ9DQyJCopwTKKrPISiYmIldulLnhcMijiVV/CQBbo+mgHiJVECG1OnX1034EMMOD X0L5puQglo50mgxH7+r3Q/q0eSyPnFBUIg7v5xY7VwH4swwgF6F1D6Ta0Ucu4PAH1J4y JpejUAMqY/8sZ3j4n7qzIRr1NdOZhRGsizXtbRtcWtITjCBOoWevWQyPsazFu6LqNi2F vTgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=eMW459fM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f19-20020a0564021e9300b00461c852af19si12230259edf.633.2022.11.22.06.53.01; Tue, 22 Nov 2022 06:53:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=eMW459fM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232909AbiKVOlb (ORCPT + 90 others); Tue, 22 Nov 2022 09:41:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231465AbiKVOl0 (ORCPT ); Tue, 22 Nov 2022 09:41:26 -0500 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABFEF6B22C for ; Tue, 22 Nov 2022 06:41:24 -0800 (PST) Received: by mail-ed1-x52d.google.com with SMTP id z18so20901823edb.9 for ; Tue, 22 Nov 2022 06:41:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=9Kacw5FrPZZ3AdW9d8qAJ/kGPVPvKgJmlT/4YyZBVx8=; b=eMW459fMFldVshj3WV+ihtUTZnN2/2Hj68P41SlaqDDiVW1hhAWBX0UC5DRobZqGCP /o2moQdFpE7zKyynoZQqpKGvskmLYvyw1ySQqT7VUDyYANvGI/KnSQCX4kXiTpN1TBYs 914g4PnWap5OJDSgzWDCCgkuPvasp8UlkBmkk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=9Kacw5FrPZZ3AdW9d8qAJ/kGPVPvKgJmlT/4YyZBVx8=; b=f75qMUTnDMrdc3xqYSOsEqKFteo2xC/PFtJbYgm3/id7SBIh+xazGQdoUwrNY1mqeM 4qyvIq0Ar5HuIa7cstgDhv38j8lE4AgHcRO3X2oHqzrQR0p24b892Bdg/v7miFwEyahB 3EULVpXFwHjLNm0nPlFlk23eKRVgQxxfdaHmbcgtEG7molBgu7DnqFjqcJsMzMDQfNzK mDxV0QjgK998DEncapNhxvbmd7IBwRNwk+PWKGZXGSOtdKnfDGso/anLoGKdOaSyg3Lc IA7rinJ0sBtfYIZNz88REo2ssuJplfOze77G+bYap8P2bPSG6UM21j0XuNWt+Kt1WnC9 vJfA== X-Gm-Message-State: ANoB5pkRox7Eaz03E7OAUKHeNPNxE4l2Ax6kSqyfwTfs9KC3dkbDKMxt tJGoRNi0zwsPmnpGFiKvl9GN3M7KKKgB5w== X-Received: by 2002:a05:6402:3203:b0:467:b8c9:a7fa with SMTP id g3-20020a056402320300b00467b8c9a7famr5581006eda.25.1669128083250; Tue, 22 Nov 2022 06:41:23 -0800 (PST) Received: from [192.168.1.149] ([80.208.71.65]) by smtp.gmail.com with ESMTPSA id b10-20020a1709063caa00b0078907275a44sm6058819ejh.42.2022.11.22.06.41.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Nov 2022 06:41:22 -0800 (PST) Message-ID: Date: Tue, 22 Nov 2022 15:41:21 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH] iio: adc128s052: add proper .data members in adc128_of_match table Content-Language: en-US, da To: Jonathan Cameron , Lars-Peter Clausen , Javier Arteaga , Dan O'Donovan , Andy Shevchenko , Nicola Lunghi Cc: Jonathan Cameron , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221115132324.1078169-1-linux@rasmusvillemoes.dk> From: Rasmus Villemoes In-Reply-To: <20221115132324.1078169-1-linux@rasmusvillemoes.dk> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15/11/2022 14.23, Rasmus Villemoes wrote: > Prior to commit bd5d54e4d49d ("iio: adc128s052: add ACPI _HID > AANT1280"), the driver unconditionally used spi_get_device_id() to get > the index into the adc128_config array. > > However, with that commit, OF-based boards now incorrectly treat all > supported sensors as if they are an adc128s052, because all the .data > members of the adc128_of_match table are implicitly 0. Our board, > which has an adc122s021, thus exposes 8 channels whereas it really > only has two. > > Fixes: bd5d54e4d49d ("iio: adc128s052: add ACPI _HID AANT1280") > Signed-off-by: Rasmus Villemoes > --- Ping. Any chance this could be picked up before the merge window for 6.2 opens?