Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2598559rda; Wed, 25 Oct 2023 07:19:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGugynEuY2gM4EwVMZKgBoiiW2mWGTsOL0Ya+fJejg9tU5XAIPEadak57T6W8g+q4BCIE3+ X-Received: by 2002:a81:6ec4:0:b0:5a7:afc9:3579 with SMTP id j187-20020a816ec4000000b005a7afc93579mr16137742ywc.18.1698243587153; Wed, 25 Oct 2023 07:19:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698243587; cv=none; d=google.com; s=arc-20160816; b=TlnZC4G0jIehIPtsXX9SNTCkiWVwp8xulYSzBchtX+tpNeSlsk3AbqK1M2PadVVs4q fN5dQ+G9sZ3vc61lv9JjHH+0gc2LCLPevIxtAuYovcJz9IZeYjkrIXRkGODvv+uoPEko jIjV75OyJpVDtoTK+1DJgCBUfCWZURygp78wAU5UjQ9eXRn46RzQAjIKG67F0c3vvYSZ P1nR5zAbzGjxmFNG7Il8JnpdoinqlrHDm88CA7AHeiTo8PutKkA83Bbw/KK41JL+ITys ObKlX9FeBE/2wQV/60RPtMnCZAryei0dDmQnTCTNhizCsz0V4UWExy9oXWyD0gEawhUX /3OA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=RuY2yDHrXKAvuateilio+Ihipw+6+Lq+kqIuX9eZkgc=; fh=tEFirByh81eMJtFTLru1DdWnsZV7z2mwmyNWt+d+Ggs=; b=HExxuWsUVC2FDF4K/CWZdCkUhDIK9T/+u3jts32VoKGIL+HQsr0x7wKgItR4xNLY3s OaafkwcodImuVhYU/y/1N+p1mvWTYvK3a33gT7ROBCAypSVDMnlAFifoTb3tZQ+k/+cT En3nsv0H1n14BhcmDgwZis4gGc0ZpI5lSwFMz9c4Jzc0sPJ201U4PzT8r3fBSLZ50KaF 6+5lxbwvdt8L1elTZkcJU/1BDbKEdNZbG44Fu4rTK0VNimOMwac1KF/BClaYmEC1Nqv/ EiEJV7makzlt+Mm3cuk4AY2Scn/rgqVRdPY1abWKm9CaW2xjKjf6VKWH4tLGfiap/4Hn 835g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=xqXXrruY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id t124-20020a0dea82000000b005a7ad045122si11572683ywe.116.2023.10.25.07.19.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 07:19:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=xqXXrruY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 656FA801B1A1; Wed, 25 Oct 2023 07:19:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344613AbjJYOTf (ORCPT + 99 others); Wed, 25 Oct 2023 10:19:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232846AbjJYOTe (ORCPT ); Wed, 25 Oct 2023 10:19:34 -0400 X-Greylist: delayed 346 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 25 Oct 2023 07:19:32 PDT Received: from out-182.mta0.migadu.com (out-182.mta0.migadu.com [91.218.175.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 059AFA4 for ; Wed, 25 Oct 2023 07:19:32 -0700 (PDT) Date: Wed, 25 Oct 2023 16:13:41 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1698243224; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RuY2yDHrXKAvuateilio+Ihipw+6+Lq+kqIuX9eZkgc=; b=xqXXrruYY3CMsVHk0QotQ+7a99KNMvVrS2E6GyvvHA86+kfOC8D2FFhXQzg8ZnU5gwofKY Wg/wyazmFAnQ7L78sYju1lHjzVVZB+oswcb0jXNAM2xrU1Vi65BpohWpNXxnR/t+4tNjHD EhvN6StwHVGrQkK0AeckCMZ+nZKBmTo= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Richard Leitner To: Conor Dooley Cc: Guenter Roeck , Jean Delvare , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 4/4] dt-bindings: hwmon: ti,ina238: add ti,ina237 Message-ID: References: <20231025-ina237-v1-0-a0196119720c@linux.dev> <20231025-ina237-v1-4-a0196119720c@linux.dev> <20231025-unclip-ion-826a58681a12@spud> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231025-unclip-ion-826a58681a12@spud> X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 25 Oct 2023 07:19:44 -0700 (PDT) On Wed, Oct 25, 2023 at 02:58:44PM +0100, Conor Dooley wrote: > On Wed, Oct 25, 2023 at 10:34:14AM +0000, Richard Leitner wrote: > > Add ti,ina237 binding to ti,ina238 as they share the same driver. > > > > Signed-off-by: Richard Leitner > > --- > > Documentation/devicetree/bindings/hwmon/ti,ina238.yaml | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/Documentation/devicetree/bindings/hwmon/ti,ina238.yaml b/Documentation/devicetree/bindings/hwmon/ti,ina238.yaml > > index aba89e5f34b3..17408076696c 100644 > > --- a/Documentation/devicetree/bindings/hwmon/ti,ina238.yaml > > +++ b/Documentation/devicetree/bindings/hwmon/ti,ina238.yaml > > @@ -22,6 +22,7 @@ description: | > > properties: > > compatible: > > enum: > > + - ti,ina237 > > The driver patch you have done implies no difference between the > programming model for both of these devices. It'd seem to make more sense > for the ina237 to fall back to the ina238, thereby requiring no change in > the driver to support it. Thanks for the quick feedback, Conor. I first thought of just mentioning the ina237 in the documentation as "compatible" to the ina238. But IMHO it is better understandable if it's listed as compatible. And I would strongly encourage mentioning it somewhere (documentation or compatible). So other people using the ina237 are able to find it and don't have to compare the datasheets by themselves to find the right driver. > > Cheers, > Conor. > > > - ti,ina238 > > > > reg: > > > > -- > > 2.40.1 > >