public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: cy_huang <u0084500@gmail.com>,
	robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org,
	sre@kernel.org
Cc: mazziesaccount@gmail.com, alina_yu@richtek.com,
	cy_huang@richtek.com, alinayu829@gmail.com,
	linux-pm@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 2/2] power: supply: rt9471: Add Richtek RT9471 charger driver
Date: Thu, 18 Aug 2022 11:09:53 +0300	[thread overview]
Message-ID: <85193de5-244c-2cda-e442-656769b97b14@linaro.org> (raw)
In-Reply-To: <1660785696-9010-3-git-send-email-u0084500@gmail.com>

On 18/08/2022 04:21, cy_huang wrote:
> From: ChiYuan Huang <cy_huang@richtek.com>
> 
> 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 <alina_yu@richtek.com>
> Signed-off-by: Alina Yu <alina_yu@richtek.com>
> Signed-off-by: ChiYuan Huang <cy_huang@richtek.com>
> ---
> Since v2:
> - Fix checkpatch error about 'foo * bar' to 'foo *bar' in psy_device_to_chip function.
> - Specify the member name directly for the use of linear range.
> 
> ---

(...)

> +
> +static DEVICE_ATTR_RW(sysoff_enable);
> +static DEVICE_ATTR_RW(charge_term_enable);
> +static DEVICE_ATTR_RW(port_detect_enable);
> +
> +static struct attribute *rt9471_sysfs_entries[] = {
> +	&dev_attr_sysoff_enable.attr,
> +	&dev_attr_charge_term_enable.attr,
> +	&dev_attr_port_detect_enable.attr,
> +	NULL

You need to document the sysfs ABI in Documentation.

> +};
> +
> +static const struct attribute_group rt9471_attr_group = {
> +	.attrs	= rt9471_sysfs_entries,
> +};
> +
> +static const struct attribute_group *rt9471_attr_groups[] = {
> +	&rt9471_attr_group,
> +	NULL
> +};

(...)

> +
> +static const struct of_device_id rt9471_of_device_id[] = {
> +	{ .compatible = "richtek,rt9471" },
> +	{}
> +};
> +MODULE_DEVICE_TABLE(of, rt9471_of_device_id);
> +
> +static struct i2c_driver rt9471_driver = {
> +	.driver = {
> +		.name = "rt9471",
> +		.owner = THIS_MODULE,

You should not need this. Run coccinelle/coccicheck on your driver.


Best regards,
Krzysztof

  reply	other threads:[~2022-08-18  8:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-18  1:21 [PATCH v3 0/2] Add Richtek RT9471 3A battery charger support cy_huang
2022-08-18  1:21 ` [PATCH v3 1/2] dt-bindings: power: supply: Add Richtek RT9471 battery charger cy_huang
2022-08-18  1:21 ` [PATCH v3 2/2] power: supply: rt9471: Add Richtek RT9471 charger driver cy_huang
2022-08-18  8:09   ` Krzysztof Kozlowski [this message]
2022-08-18 10:16     ` ChiYuan Huang
2022-08-18 10:18       ` Krzysztof Kozlowski
2022-08-18 10:30         ` ChiYuan Huang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=85193de5-244c-2cda-e442-656769b97b14@linaro.org \
    --to=krzysztof.kozlowski@linaro.org \
    --cc=alina_yu@richtek.com \
    --cc=alinayu829@gmail.com \
    --cc=cy_huang@richtek.com \
    --cc=devicetree@vger.kernel.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=mazziesaccount@gmail.com \
    --cc=robh+dt@kernel.org \
    --cc=sre@kernel.org \
    --cc=u0084500@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox