Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp733343rwl; Wed, 29 Mar 2023 07:48:57 -0700 (PDT) X-Google-Smtp-Source: AK7set+bF6Pj8eFbq7Vu7fiTHn9VJzbqV0L7ueUpWuZE4y62fR6La+JCYaxlKxxZLMt74Tp33e9M X-Received: by 2002:a05:6a20:af1c:b0:d9:3683:bc15 with SMTP id dr28-20020a056a20af1c00b000d93683bc15mr15993683pzb.19.1680101336846; Wed, 29 Mar 2023 07:48:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680101336; cv=none; d=google.com; s=arc-20160816; b=063mZUFq6wjfvZIKzrsogg8ibVsoDSt1mSNtveUHML4F03tAK/YH28fDyhDyX9CLlq Y/L12XyxR9P28BJsr7qUytmZyTB7IPhy5ufcliBUhihvM5YYciWI17ParGW4c7PzS0MK May7FT6sAHHEyZaiUsyM9t2LXbVvCOUrv8h1KF01x76t3YLV1c6dPo/8hzdnSjvMZDdb a5tiNURUdOwDzZ4Kaapy1vCxU/xK/8DJvpKjt8x0Gb+Nk57Pi8IZZiYIOYKhZIDz+3pb ydzXk2YVbwXze5ti8tTLrZHbsWdcdcE2r8AdlaP9usNW6rQ0jw3UIAEdrmNeDJLCZfYU S0Uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Dmw9vBiuTQijiRRUzGhtFqSH0k3mkSqTL2F6Dy2zA5U=; b=TuhQ1tyjZe6ZBgykDVvMXhwOVhNXHcVKg7WA5fMUbuSj08CgoRer1DiNYyTzenkvP3 LHzjFG/lH5AWgVg+HsSrfgBXIjmOZB+eHeohkevbhxAZpV24grJYlHKkVo1/Gf2x0kEF q0sA2oOxpOJSt+wgVvaAO5+7sAkOivPO4N1Iu9lRcVr1F7aQBfOFvUk6K2aC8mUoK8P+ +mZEDfJjNOix+lKMJzbvRXw0zVflBPjNw6thxRgeSWyKjxcDJOJrPmt8LEsBhz9OWHB/ JZY8+SMuzJwjEkc+jKyM/Ly0i4zMQaObN1ITBqWoBEA36bhXxzm/TLg5BnTnvH76En9a EsGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=nMByuSNh; 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=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x69-20020a638648000000b005135ac02ca6si6595043pgd.135.2023.03.29.07.48.45; Wed, 29 Mar 2023 07:48:56 -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=@intel.com header.s=Intel header.b=nMByuSNh; 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=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230400AbjC2OqY (ORCPT + 99 others); Wed, 29 Mar 2023 10:46:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230356AbjC2OqH (ORCPT ); Wed, 29 Mar 2023 10:46:07 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1FB693C0; Wed, 29 Mar 2023 07:43:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680101039; x=1711637039; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=mF5KcYfESzULnMbcHpPg9/Y3X1FNg6NDTzgQz7ayaEc=; b=nMByuSNhu5KCr70AFM0k4PV9tT6hInOq9Wds5kSn2a4KZ5ztdxyLypvF pqBx0tNgNIKEhk4qiDYQ7rEBeRUZh1y2WO4zBxdYB118RKbuIaVJ1Bw6M o1LoK7/22yzOgO8peYoPW4fam750R4oxPHqxYwwVd042Ok76QdSYSr3yV 1/RiUlZQrCdtBFWxMqhlgfUzHJ9kDO/ZC36WmWkJgUVWWvcrj5o6bEgif fu8VRTvXbnxhFN0Qf3avVopCApzZIXvUFSs5iyabuK0W1G8M9xpEcyqKQ wIUWsBg1+Ln8IHJcQH6f3KcNdChMX7+7ffH7HCiHxMELzwcsyrf3jkP8Q g==; X-IronPort-AV: E=McAfee;i="6600,9927,10664"; a="338393917" X-IronPort-AV: E=Sophos;i="5.98,301,1673942400"; d="scan'208";a="338393917" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Mar 2023 07:43:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10664"; a="716906281" X-IronPort-AV: E=Sophos;i="5.98,301,1673942400"; d="scan'208";a="716906281" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga001.jf.intel.com with ESMTP; 29 Mar 2023 07:43:54 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1phX1k-00A41k-0n; Wed, 29 Mar 2023 17:43:52 +0300 Date: Wed, 29 Mar 2023 17:43:51 +0300 From: Andy Shevchenko To: Lee Jones Cc: "Sahin, Okan" , Rob Herring , Krzysztof Kozlowski , Liam Girdwood , Mark Brown , Jonathan Cameron , Lars-Peter Clausen , Cosmin Tanislav , Stephen Boyd , Caleb Connolly , Lad Prabhakar , "Bolboaca, Ramona" , ChiYuan Huang , "Tilki, Ibrahim" , William Breathitt Gray , Arnd Bergmann , ChiaEn Wu , Haibo Chen , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-iio@vger.kernel.org" Subject: Re: [PATCH v6 5/5] mfd: max77541: Add ADI MAX77541/MAX77540 PMIC Support Message-ID: References: <20230307112835.81886-1-okan.sahin@analog.com> <20230307112835.81886-6-okan.sahin@analog.com> <20230315175223.GI9667@google.com> <20230315175257.GJ9667@google.com> <20230329143615.GS2673958@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230329143615.GS2673958@google.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 Wed, Mar 29, 2023 at 03:36:15PM +0100, Lee Jones wrote: > On Tue, 28 Mar 2023, Sahin, Okan wrote: > > >On Wed, 15 Mar 2023, Lee Jones wrote: > > >> On Tue, 07 Mar 2023, Okan Sahin wrote: ... > > +static const struct i2c_device_id max77541_i2c_id[] = { > > + { "max77540", (kernel_ulong_t)&chip[MAX77540] }, > > + { "max77541", (kernel_ulong_t)&chip[MAX77541] }, > > Just 'MAX77540' is fine. I tend to disagree. There is an error prone approach esp. when we talk with some functions that unifies OF/ACPI driver data retrieval with legacy ID tables. In such a case the 0 from enum is hard to distinguish from NULL when the driver data is not set or not found. On top of that the simple integer in the legacy driver data will require additional code to be added in the ->probe(). -- With Best Regards, Andy Shevchenko