diff options
author | 2024-08-31 16:20:36 +0200 | |
---|---|---|
committer | 2024-09-03 23:20:27 +0200 | |
commit | 03ec41c1670aedfbd126f541c4acbb8e69d4cd0c (patch) | |
tree | 4b34dfe5277e6eb721f549e933e8cb619618df9e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | power: supply: ucs1002: Adjust ucs1002_set_usb_type() to accept string values (diff) | |
download | linux-rng-03ec41c1670aedfbd126f541c4acbb8e69d4cd0c.tar.xz linux-rng-03ec41c1670aedfbd126f541c4acbb8e69d4cd0c.zip |
power: supply: rt9467-charger: Remove "usb_type" property write support
The "usb_type" property must be read-only for charger power-supply devices,
see: Documentation/ABI/testing/sysfs-class-power.
But the rt9467 driver allows writing 0/1 to it to disable/enable charging.
Other charger drivers use the "status" property for this and the rt9467
code also allows writing 0/1 to its "status" property and this does
the exact same thing as writing 0/1 to its "usb_type" property.
Drop write support for the "usb_type" property making it readonly to match
the ABI documentation. If userspace wants to disable/enable charging it
can use the "status" property for this.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20240831142039.28830-4-hdegoede@redhat.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions