Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5928867pxb; Mon, 14 Feb 2022 10:56:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJx7Sh8LdsN4+18MjXdv+sB4yAg4+StiWNKoGOR30fhIMDJ2mZSJvMzJK71KLZ/DiJVx5YFK X-Received: by 2002:a63:d711:: with SMTP id d17mr320804pgg.429.1644865003193; Mon, 14 Feb 2022 10:56:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644865003; cv=none; d=google.com; s=arc-20160816; b=OQY3WIJ7vgXJp0+dCQuGjlZa9yDHab1nZ06hViJ32HwYIp6NoTyBw8xipdA4xqunXr B18HuWu1cRoxua+/U2nRpynDe3O+czQU3Qmx59gASjT3BGkvTntSoTcgQi25AW1X6SfB +j/3Ak7Bp8hFYRjm8v4ZmeMndhaul1j534dIZSDwyueAf8vtOF6VtUc1fZWOrACvqpT/ h3RZkfcbFMXnO0e9aEngAGn2KyHIztH/uzSlK8sYbNsgR13EZ5JuBjziWnb60vUHgX9v 1bfx2ODFBNeDWOxIWqrrCW4HLvdydLMyy7yxvEUWoZZD5527TWpRb7Ea2s914RkjK1Gg 95BA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=2zIZDV0bKIX2QsFrkmLscCD6kTgXyjPR9dmVtO2M2fE=; b=FpwxCY56jlOd6l6b0s6p9vjU/TyA9I1pyDsKfQt/jpBiCT8+3CN+0NPQnldO30YjVZ jw/kBs50/yLQVGh8yJgJqu1jbG0AOJb4CdDq+aj/K5f1DYF+MBbiI6BvEsDb0U/OJkmR eZ6pS4QKEOrK2nb6I3q3+PtZZRQhnV6ARt0jQFIPNiSs4/OB2vpGVSMw5hAj2XGNSinA jL7PbAIQaknpa+zPnRl4LyFVWdLeGW6t2+IxWN0q2Wn5YzJJpO8ylT/KKiMXN3GS35do v+LiwMszpODJD49jfWuF4tv0tor3BlFfXdopKuYs4F+LsLtZLJxItOcygDDWSlY6pICE u6vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XcoWqxMy; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 24si26996355pfp.34.2022.02.14.10.56.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 10:56:43 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XcoWqxMy; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 139E5ADFE8; Mon, 14 Feb 2022 10:55:38 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347751AbiBKHo1 (ORCPT + 94 others); Fri, 11 Feb 2022 02:44:27 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:51914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232936AbiBKHo0 (ORCPT ); Fri, 11 Feb 2022 02:44:26 -0500 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FE7D2A6 for ; Thu, 10 Feb 2022 23:44:25 -0800 (PST) Received: by mail-wr1-x432.google.com with SMTP id o24so11042235wro.3 for ; Thu, 10 Feb 2022 23:44:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=2zIZDV0bKIX2QsFrkmLscCD6kTgXyjPR9dmVtO2M2fE=; b=XcoWqxMy/x9ja5hrGMU3f1pHYvIIcFRqX+ZUUDE+uD4CGKEbfrLfcQB+TSW0AAn48g SyYPA+a2hKlzSojd9STXvCm1wmJvme+GgoDHUf5aNhNDSmbbcePPhg7ow7Il3LWrBlxD J1PfEpqR2Ax3wP9bbEFxr8kNkajwd9RVy2p87+GFls//jBGjQCcIo/9z3TIQmUOL2zbF RixcpOLJEw3aup8hkj24P1J9UiBuhv3la+GbGm2FEwud/CO6ApttrTVhbZlH6erCLFdG Egr0/RbI/yrd27Q6V+dqFWDaMVXqWylLUEb4oUZcfiAaM5Vc5V25ATxKTJkdJGPIMWHE dJWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=2zIZDV0bKIX2QsFrkmLscCD6kTgXyjPR9dmVtO2M2fE=; b=IW3kE8pZzT6WZKZYCTyWM8LKkjLP1UprnCBwNUghxEhgQRQM3EkoBKDv7tzkM063rz Z4Rw5QuNe/Y0XBhksoX97v1g/VG/qEuojbw+KCMZlSlZ1M/gPlt/QuRgoPzfmVOPUoIB 8ALJUvex1EjAJQe7+OV/NqfsbR7iH1XrZd88vdul6kHU2sUWGk5XaHAg6ZkSqktaS4Vc hJFlNsjkZB2i1Ww/3d+qKUHCn7RMae0eEASx1tQJoaKSq7zKqtBzEZsTjkxdSIKFTSYj cuCkweTwQwHmy88WG3K2qFo4FQWq07OkbwTcRpyaC5Q/Sa+ia7FAh8QTphcSACRvwRJj j8KQ== X-Gm-Message-State: AOAM533VnxfBLYMzrg8wHUFBFFtYKVwUsw/RvdRtrh+UtKUt8IG0XC2t 3b9ChKyK7/mVNjCNk2b19jgZbg== X-Received: by 2002:adf:f4d1:: with SMTP id h17mr299563wrp.111.1644565464063; Thu, 10 Feb 2022 23:44:24 -0800 (PST) Received: from google.com (cpc155339-bagu17-2-0-cust87.1-3.cable.virginm.net. [86.27.177.88]) by smtp.gmail.com with ESMTPSA id t11sm8107696wrs.66.2022.02.10.23.44.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Feb 2022 23:44:23 -0800 (PST) Date: Fri, 11 Feb 2022 07:44:21 +0000 From: Lee Jones To: =?utf-8?B?6LW15pmT?= Cc: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , "thierry.reding" , linux-arm-kernel , linux-pwm , linux-kernel Subject: Re: [PATCH] pwm: vt8500: Rename variable pointing to driver private data Message-ID: References: <20220209064755.7287-1-zhaoxiao@uniontech.com> <20220210074046.vxskduecvgiehvnl@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,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 On Fri, 11 Feb 2022, 赵晓 wrote: > Thanks for you suggestion. I modified the patch following your instructions and commit the v2 version.  >   Would you be kind enough to turn HTML off in your browser please. Also, please refrain from top-posting. Replies should be inline (like this). > ------------------ Original ------------------ > From:  "Uwe Kleine-König" Date:  Thu, Feb 10, 2022 03:40 PM > To:  "zhaoxiao" Cc:  "thierry.reding" Subject:  Re: [PATCH] pwm: vt8500: Rename variable pointing to driver private data Please configure your mailer to strip mail headers from the body. >   > > On Wed, Feb 09, 2022 at 02:47:55PM +0800, zhaoxiao wrote: > > Status quo is that variables of type struct vt8500_chip * are named > > "pwm", "chip" or "pc". The two formers are all not optimal because > > There are no variables named "pwm" or "pc". > > > usually only struct pwm_device * variables are named "pwm" and "chip" is > > usually used for variabled of type struct pwm_chip *. > > > > So consistently use the same and non-conflicting name "pc". > > The intention is fine, but you missed a few instances that are named > "vt8500". The statistic in mainline looks as follows: > > $ git grep -o -h -E 'struct vt8500_chip \*[a-zA-Z0-9_]*' linus/master drivers/pwm/pwm-vt8500.c | sort | uniq -c >       2 struct vt8500_chip *chip >       5 struct vt8500_chip *vt8500 > > (So there 2 variabled named "chip" (that you renamed to "pc") and 5 that > are named "vt8500". I prefer to rename the "chip"s to "vt8500". > > Best regards > Uwe > -- Lee Jones [李琼斯] Principal Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog