Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp367511rwl; Wed, 5 Apr 2023 01:40:27 -0700 (PDT) X-Google-Smtp-Source: AKy350ZfDAmk90zy/0CkwSJAvlLUj2UFz70Z+kgWm6NgO6NPwbldym8GI9zHPRpEa6l7hHn6geJE X-Received: by 2002:aa7:97ac:0:b0:626:14fb:3c87 with SMTP id d12-20020aa797ac000000b0062614fb3c87mr4543027pfq.4.1680684027535; Wed, 05 Apr 2023 01:40:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680684027; cv=none; d=google.com; s=arc-20160816; b=AQFpm5dHWSdTwn8YruS7FA/HmgD2yihWBkK7FtGewjTnVFyFi2mMC68KnQHaQ5/TiP xkSDUqJ3wq0fWaMzW2bOby86YAoDqHzMdK3G6/17kooW4GeUcdeJb8dYN9rqP7eggCVx GA4H1OzJ0bdo4Hgj+XRHloGhQnk24I+aEi12gKU6RgG0xUAyzuAvMAHUZHgxt3xiy5Bt 5Q1OZ44nnNZYKrGlZlsY86fMuzdh3qTzuSV3+EgPM0LkUlagS2jGmJGWpTj72MDPig/s G1Yg5bCxqFNEbhuWJ83jHiXDaNta5csx3/qmALGY7GkNGdSoYWu7sZX63jEuzwl4wco9 vDfw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9+GBHKwDOm14vqVqD6CPbvDrJP5fGe6z5U8YGkoxyoE=; b=zkTnjQYVmFCl6A+J8I/svfxzikYSCKheMdTtkh2OY91kNryc6OL+mWAYgUlY4ndmVh pvsMYHPrbvwjK+0xtm3jNAqYBiX/2muf6ZhoGlJMo+733P5MP4z0yNS1ax8vMYHZCRdl EcnBgWkcY8ZXF/qvHxpiXbbo/iESABctHxm5FQ32MIJqV3lMX6gwWUpIvPZd6fgw4B/S W7O5wV8/jw0xuJ1CMc8oVM3teJ3dSwM7CJr1MRXK7Ch1WCz5gReEAmS7SoHa6j/inBvW YoAcBkH/0aBY+ZuExLua1GhdKrWCGZpE9rTYzJoAumCUXYI4JyVoAMhDLkCIr+dDbM5j bAZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="hXf1/3j4"; 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 k70-20020a638449000000b0050f64740c13si11899415pgd.622.2023.04.05.01.40.14; Wed, 05 Apr 2023 01:40:27 -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="hXf1/3j4"; 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 S237545AbjDEIgc (ORCPT + 99 others); Wed, 5 Apr 2023 04:36:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237539AbjDEIg3 (ORCPT ); Wed, 5 Apr 2023 04:36:29 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67C853C3E; Wed, 5 Apr 2023 01:36:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680683787; x=1712219787; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=kZYnLU8SOtNyYo+2Y55HVr7QX63LleD2aWRYlI7W+Ro=; b=hXf1/3j43Zd6IBUnyZUqha9nlweT8GV7q1hhVnjEKqu8hPGc4WJP6FLU yzPSYKU5Y/AYFSdeIYiTSSu2HlIZjtyB+uRmFwflps/0/yE1TL7woB6qH t7ewIG+CbXS/Bvt9a3Oc31RX7mck8g17kBLoLe7l+X0MiZUVRpbx1Tzz4 awiiaxghEB43VZZJPfJ0uATt5AVFxyq/+uXX6Tj88ZOuayq3bDPB2bUoZ ALm/TfJ0eDvlQBFvgAd+MKcWZDAKBwUoZg2THeaG2emNBdq4P2wcXut/A G9XmITkySogcF7sR6IS5mFHS/0z5ReYmCNqjS4kMz4SOmuyMvn2kuE5Po Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10670"; a="344114409" X-IronPort-AV: E=Sophos;i="5.98,319,1673942400"; d="scan'208";a="344114409" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Apr 2023 01:36:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10670"; a="689187109" X-IronPort-AV: E=Sophos;i="5.98,319,1673942400"; d="scan'208";a="689187109" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga007.fm.intel.com with ESMTP; 05 Apr 2023 01:36:21 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1pjyct-00Ckig-1k; Wed, 05 Apr 2023 11:36:19 +0300 Date: Wed, 5 Apr 2023 11:36:19 +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> <20230403140950.GF548901@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230403140950.GF548901@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,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,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 Mon, Apr 03, 2023 at 03:09:50PM +0100, Lee Jones wrote: > On Mon, 03 Apr 2023, Sahin, Okan wrote: ... > > In fact, one of the maintainers suggested assigning chip_info to data > > instead of enumeration. Then I added chip_info and put devices into > > sub-structure above. I will replace chip_info with id structure in max77541 > > device structure, right? I will use enumeration for data as I will assign > > it to id, and distinguish different devices. > > Yes, that's correct. Please remove chip_info altogether. Then it will provoke casting in the OF ID table which I believe is not what we want. I would agree on your first suggestion to have a plain number in I?C ID table, but I'm against it in OF and/or ACPI ID table. -- With Best Regards, Andy Shevchenko