Received: by 2002:ac0:c50a:0:0:0:0:0 with SMTP id y10csp1116365imi; Fri, 1 Jul 2022 03:32:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t3ZlPMUP20XRKxdvEP85ZaNAjf7bSJXvVuGbTpH0i3FnpsuDdZjhtNcTbeJelvF68xvbc2 X-Received: by 2002:a05:6402:2397:b0:435:5a96:e0b3 with SMTP id j23-20020a056402239700b004355a96e0b3mr17970118eda.52.1656671539334; Fri, 01 Jul 2022 03:32:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656671539; cv=none; d=google.com; s=arc-20160816; b=FeHpC4tzEWoguonj1QCFMPQwwuzP4AjWR3UT/rvrjtFbAVfpRm+rz1RdiZfFf3k22y Ql9rjO8ce2CCdhwbMFizgeXwia9fJZ9jARItQv6q7xlNzcA6F/DhTJyUYgsMgcGWGyzg bCnJP0P8pC8wX7kcfVhMwE/1AfUmiiANohEyNmmx5H0k7uTb4YEX1VEoU9lDgn3khqrP 5vIO7c43j+molZ5+mUuq7TZkWNYw4qSt6kFpNirk/UtemwQkn/tFX9O+fi9WQ8jYY+Ml 1/kHKSs3sM3793179cCxkJccNYqaTOkCTaH9BO371Q/9lf0PAv6DR3zIYpzNMh2f2c4D lgdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=6i9rjfH3G4VsINLZARCwk6I6fFER2N6iAYbqDz9ALlU=; b=0SAyXoODC9Dhb202liL2Fh1gTZD1CykxCLqmwjy7nRTPSKooc73qBDvrD1amBJkSsG ch6PR6eU78IuSrzCZQ0IO5GhV0S/A42hPDLLdAu2a90izH2cuOtESXIdqN7C+k6M9Km9 WE1nxrfjXBIavtTZOlP0SNz+KaL2QnfzanHo7heHiWgPj+CizbCprdZ1xDrimu+4IIVh O/2LXVGVl5pVE0gu17TbP4NGZFs9rswCaJZCpwEvEBTK7uX82caZJIBbQh8H+O0pMWW4 GTyUAUmfylvrce7pR6Dc+BzxCiHrtASZ1N7dYzdKkQkHN54jDLOwVPzPUbsWQ+cuGXGb l8aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cytPxckd; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ga3-20020a1709070c0300b00722faf491a0si1435037ejc.686.2022.07.01.03.31.53; Fri, 01 Jul 2022 03:32:19 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=cytPxckd; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233050AbiGAKIq (ORCPT + 99 others); Fri, 1 Jul 2022 06:08:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229562AbiGAKIo (ORCPT ); Fri, 1 Jul 2022 06:08:44 -0400 Received: from mail-yb1-xb29.google.com (mail-yb1-xb29.google.com [IPv6:2607:f8b0:4864:20::b29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 438EC14D30; Fri, 1 Jul 2022 03:08:43 -0700 (PDT) Received: by mail-yb1-xb29.google.com with SMTP id p136so3206726ybg.4; Fri, 01 Jul 2022 03:08:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6i9rjfH3G4VsINLZARCwk6I6fFER2N6iAYbqDz9ALlU=; b=cytPxckd4rDinhKxg/CCDo60hAhJynJCv5EPy5twlZYEiy+Kg1x3K6k46ZzCd7JTWQ OHhHdSiJi9dSnMeOmp4jqdLkFPav0weA2H+aXVJCjoFwY/RWPak6dGt6wpF5tt9KGLgc DyQaAoacTPzil528dHqkxrVlFDnKgdoWs4OmRO1RNJz+sIbd1EHZb7NBXxOVeR36WbNZ mMMlX03aDMxS9se6dyi3szg8sQB2sb4umsxpwVcdvRXmNL4sNvezbHhKZ8MH83IbMMgy 4cxrCJAYoWgKG+mdaUspmpxxGT66ZQVJhab7a6c2Ll560fZIShGLcmoITfphzCaw3dNG /1Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6i9rjfH3G4VsINLZARCwk6I6fFER2N6iAYbqDz9ALlU=; b=bby35xCHwZGvh1BM7dDfL5X9H7KScv+07NQU+Zz9NTRZlneN5D8LA8wY7QZhyXmM+k U76E5GHxAhf2etzRrSQPSrf/8+Z/HN6xhXbqM4VMyDh8ru3RW7QEYobi/oIY27BdzGX2 xAISEDFjrEWh0C3pqcTFkPxHO7z3z+9gqL6BsrU3flnsut6uvNwXV+udMDjIjobfA3N/ 2f2TJScMuaKguSKsvpwkL3XUboFGh+cBNVkAb7NuntdYEVQ5A4Yo30OkPaMVS7bbXei3 zVbdLcjx1lyx/8VgI+bhQXU1GA/vG4Gu6Y789tHB88Yv48NAIztnwZzqV717WytdhUG1 g3bA== X-Gm-Message-State: AJIora/MHsZUvdmC/lvGsdarD9q9mu9q1mfKQONkR7hQ3rvV91ApuxUB 7o8xhR2nJAbfkI3sA30ShaJezUgJ1KV0P/nytlJH1EQbokm4Dg== X-Received: by 2002:a25:dd83:0:b0:66c:8d8d:4f5f with SMTP id u125-20020a25dd83000000b0066c8d8d4f5fmr14224195ybg.79.1656670122397; Fri, 01 Jul 2022 03:08:42 -0700 (PDT) MIME-Version: 1.0 References: <20220630230107.13438-1-nm@ti.com> <20220701033823.gkp5hfowv7f3eemx@tinsel> In-Reply-To: <20220701033823.gkp5hfowv7f3eemx@tinsel> From: Andy Shevchenko Date: Fri, 1 Jul 2022 12:08:05 +0200 Message-ID: Subject: Re: [PATCH] iio: adc: ti-adc128s052: Fix number of channels when device tree is used To: Nishanth Menon Cc: Javier Martinez Canillas , =?UTF-8?B?TnVubyBTw6E=?= , Christophe JAILLET , Alexandru Ardelean , Lars-Peter Clausen , Jonathan Cameron , Linux Kernel Mailing List , linux-iio , Stable Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Fri, Jul 1, 2022 at 5:41 AM Nishanth Menon wrote: > On 18:01-20220630, Nishanth Menon wrote: ... > > static const struct of_device_id adc128_of_match[] = { > > - { .compatible = "ti,adc128s052", }, > > - { .compatible = "ti,adc122s021", }, > > - { .compatible = "ti,adc122s051", }, > > - { .compatible = "ti,adc122s101", }, > > - { .compatible = "ti,adc124s021", }, > > - { .compatible = "ti,adc124s051", }, > > - { .compatible = "ti,adc124s101", }, > > + { .compatible = "ti,adc128s052", .data = 0}, > > I should probably cast these as .data = (void *)0 thoughts? The 0 is default. You shouldn't use that in the first place for something meaningful rather than "no, we have no driver data for this chip). -- With Best Regards, Andy Shevchenko