Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2228431rwb; Mon, 15 Aug 2022 01:01:53 -0700 (PDT) X-Google-Smtp-Source: AA6agR4pBcq41pSwS6uTSdsjP7YD1tEgOhKtPt782DMFSLMfebO2ObU25ueu+Ze+UEWgO9pM4L6g X-Received: by 2002:a17:906:c150:b0:733:76b:c7a5 with SMTP id dp16-20020a170906c15000b00733076bc7a5mr9440150ejc.567.1660550513555; Mon, 15 Aug 2022 01:01:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660550513; cv=none; d=google.com; s=arc-20160816; b=MdnJanrEPLvGmcVzo1dN6NdIElnW3qaIKPXwf3o93HEMAizZd4VIWJD3MkW/WO+adg k9cmrRBneqN+NqVaNa0YzCKVdxeXEjGxFuNvzEJnaSuM6uxSBDBiouCO4tL7z7TF+8Im 6VdTiNo26T30gFrhjPSYiFL1KWN4eslZszD+uleZJVOrEJWztfpiRBHw34hCpyk9zM3i raFNQeTSo5HFLD5LN3DhdT5VtmKYccVGZKpqYOwClkk9p7xPpuxn7lqrqvjpEkU+knxY yY44573D1OYpLsQWet8/vUtufxPcQfzr0+UvLIUea3F3CBsC8trTREIwvi2+3NzMPH8/ f9VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=bRJDHP4cs+l0S/Vq3FhjHYYjhVUbwWITH21+gCuf9PA=; b=DqQY5eWGSsjRCJMYFnvD2KI0pLB31fYM4Gjq1qw+gKaosskh0AnlhEeP051UwciwUn 7/qCwP3LJSAJWj+TiHjMhtquKvxu2KPH9ON/nNQlS9tCc50Dt0m7dnqLvJ2CRhZgWgR8 hPToVpkyf+uRvMSxiz3E+/muayjXhH1mA8CxwCqpbF5DqwkpZaFET7MZPMtXz0mezNid kB5KnzeOduU9BarijpEI541JXM1xFj92U8rmByh3x3EjyZ8q7XYfsRvQojFHd0JLm8+z 1yjJ7P+Gu5RQuq3ws8ok9Ff//nO8wJluyo/axdTJHfIN5UO3O0/q35CYDa5uq6QSeAO4 c6sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="f/2ctWt1"; 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 m20-20020a056402511400b0043a7cdf26aasi8329998edd.85.2022.08.15.01.01.27; Mon, 15 Aug 2022 01:01:53 -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="f/2ctWt1"; 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 S232046AbiHOHYs (ORCPT + 99 others); Mon, 15 Aug 2022 03:24:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229935AbiHOHYq (ORCPT ); Mon, 15 Aug 2022 03:24:46 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D98813DC6; Mon, 15 Aug 2022 00:24:45 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id k6-20020a05600c1c8600b003a54ecc62f6so3517352wms.5; Mon, 15 Aug 2022 00:24:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc; bh=bRJDHP4cs+l0S/Vq3FhjHYYjhVUbwWITH21+gCuf9PA=; b=f/2ctWt1p/RNUXYK4u/QPfb7Gx7QoaxUiQa5h8VxVIH3EmMVJKau0NoYRKSygSe+ii K5MnGfjrB+89bbKMrPPFl7HylHxqk+0mx+gtZ4CgehszgM7mTREoHCN6ybiHY1xQYX0l 4ZuJd06xpd/7VA00gaLVu/BMt6do2WvdTqAB1p9dq7HWqB032eVJP9/k+Hk+DjuVZJfw pWwx7bZqDzsjDCjZDkUr23jD0KhoxUYKQ/W4BprtKeQKb8oCT3epiINmQd9LUMFRCCp1 gT8RbK6y2urJMbSsZepm/yaxhQZQJRh0Rs7ns7/g9fN8oh4yHnG037qnPclt0ODKKyeH u3yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc; bh=bRJDHP4cs+l0S/Vq3FhjHYYjhVUbwWITH21+gCuf9PA=; b=TuCASSdmzWs8V/ldub1BvpMBTV4eXXWNHrBjzFLY/+U9J6SlRlStXuxJFBOMahj1yi Dh1C+3XI1Wxj0I9ILaUucFoXXX+LFPtFZgIFPx40bBSP1oqZ+/MTV/wD7b3LkTJ297ia IJYBaK8LiLSibru8DdM4uIb+W5bjhYI0EuNRS9yXdzlARUQAmRs4329KklP3f18rXdJV dDm2Qw8gHQS1wbkXH0+ldQjB5sgdGqM2Es3Jy3tduLXTJS9xk7b+xLBL7tzOziOAOssN LF+eWMqWlOffg3S+Eyt0vzcRyCoYTAE/w/Ch7F/SqpbiMO/j7BJk7LIVXWH68sKG1oE1 y7cg== X-Gm-Message-State: ACgBeo3kkPKDiCsQ/xElh7/Ikn7kGa2gdFA2Lz9GkLao+HoDqNaCJBDH pL5hYDg9lY25InQxrVjkyNPlgIunLAQRwkXIeI7Xjt9UrTQ= X-Received: by 2002:a1c:3584:0:b0:3a5:fb0e:102e with SMTP id c126-20020a1c3584000000b003a5fb0e102emr1185726wma.105.1660548284030; Mon, 15 Aug 2022 00:24:44 -0700 (PDT) MIME-Version: 1.0 References: <1660225318-4063-1-git-send-email-u0084500@gmail.com> <1660225318-4063-3-git-send-email-u0084500@gmail.com> In-Reply-To: From: Matti Vaittinen Date: Mon, 15 Aug 2022 10:24:32 +0300 Message-ID: Subject: Re: [PATCH 2/2] power: supply: rt9471: Add Richtek RT9471 charger driver To: ChiYuan Huang Cc: Rob Herring , Krzysztof Kozlowski , Sebastian Reichel , =?UTF-8?B?5ri45a2Q6aao?= , ChiYuan Huang , alinayu829@gmail.com, Linux PM list , devicetree , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,FREEMAIL_REPLY, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 ma 15. elok. 2022 klo 9.11 ChiYuan Huang (u0084500@gmail.com) kirjoitti: > > Matti Vaittinen =E6=96=BC 2022=E5=B9=B48=E6=9C= =8815=E6=97=A5 =E9=80=B1=E4=B8=80 =E4=B8=8B=E5=8D=881:53=E5=AF=AB=E9=81=93= =EF=BC=9A > > > > Hi ChiYuan, > > > > Thanks for the patch :) > > > > to 11. elok. 2022 klo 16.43 cy_huang (u0084500@gmail.com) kirjoitti: > > > > > > From: ChiYuan Huang > > > > > > Add support for the RT9471 3A 1-Cell Li+ battery charger. > > > > > > The RT9471 is a highly-integrated 3A switch mode battery charger with > > > low impedance power path to better optimize the charging efficiency. > > > > > > Co-developed-by: Alina Yu > > > Signed-off-by: Alina Yu > > > Signed-off-by: ChiYuan Huang > > > --- > > > > While skimming through the rest of the patch... This may just be my > > personal preference but wrapper functions with just one line are > > rarely beneficial. In the worst case they just add more lines AND hide > > the details of what actually is done without any clear benefits. Well, > > this is just my view so please ignore this comment if wrappers like > > this are a "subsystem standard" > > > I'm not sure what the 'subsystem standard' is. > I declare it as 'inline' function and the function name to tell the > user what I'm doing. > This may be silly. But from my aspect, it makes each property set/get > more clear. I guess this is Ok if the maintainer does not complain. And if he does - then we at least know the "subsystem standard" ;) Yours -- Matti --=20 Matti Vaittinen Linux kernel developer at ROHM Semiconductors Oulu Finland ~~ When things go utterly wrong vim users can always type :help! ~~