Thread (7 messages) 7 messages, 2 authors, 2022-08-18

Re: [PATCH v3 2/2] power: supply: rt9471: Add Richtek RT9471 charger driver

From: Krzysztof Kozlowski <hidden>
Date: 2022-08-18 10:18:45
Also in: linux-pm, lkml

On 18/08/2022 13:16, ChiYuan Huang wrote:
Krzysztof Kozlowski [off-list ref] 於 2022年8月18日 週四 下午4:09寫道:
quoted
On 18/08/2022 04:21, cy_huang wrote:
quoted
From: ChiYuan Huang <redacted>

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 <redacted>
Signed-off-by: Alina Yu <redacted>
Signed-off-by: ChiYuan Huang <redacted>
---
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.

---
(...)
quoted
+
+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.
Can it be define in 'sysfs-class-power' or a dedicated file called
'sysfs-class-power-rt9471'?
Not sure which one is better.
I don't know what is Sebastian's preference. You can wait for his input
or do similarly as last patches reviewed/picked up by him.

Best regards,
Krzysztof
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help