diff options
| author | Haotian Zhang <vulab@iscas.ac.cn> | 2025-12-04 16:34:36 +0800 |
|---|---|---|
| committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2026-01-12 02:52:31 +0100 |
| commit | 688364a11647dc09ba1e4429313e0008066ec790 (patch) | |
| tree | 38ed77030214550f4edddcdf2e01ed16dce746ae /tools/perf/scripts/python/stackcollapse.py | |
| parent | 36b05629226413836cfbb3fbe6689cd188bca156 (diff) | |
| download | linux-688364a11647dc09ba1e4429313e0008066ec790.tar.gz linux-688364a11647dc09ba1e4429313e0008066ec790.zip | |
power: supply: bq27xxx: fix wrong errno when bus ops are unsupported
bq27xxx_write(), bq27xxx_read_block(), and bq27xxx_write_block()
return -EPERM when the bus callback pointer is NULL. A NULL callback
indicates the operation is not supported by the bus/driver,
not that permission is denied.
Return -EOPNOTSUPP instead of -EPERM when di->bus.write/
read_bulk/write_bulk is NULL.
Fixes: 14073f6614f6 ("power: supply: bq27xxx: Add bulk transfer bus methods")
Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
Reviewed-by: Matt Ranostay <matt@ranostay.sg>
Link: https://patch.msgid.link/20251204083436.1367-1-vulab@iscas.ac.cn
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
