diff options
author | 2024-06-27 17:44:42 +0300 | |
---|---|---|
committer | 2024-07-03 16:04:50 +0200 | |
commit | 467399d989d799433ec7dd8da2ebbfbc70207d03 (patch) | |
tree | 1e8a952b5e37e063398c154a886ca1214847f21b /scripts/generate_rust_analyzer.py | |
parent | usb: typec: ucsi: simplify command sending API (diff) | |
download | linux-rng-467399d989d799433ec7dd8da2ebbfbc70207d03.tar.xz linux-rng-467399d989d799433ec7dd8da2ebbfbc70207d03.zip |
usb: typec: ucsi: split read operation
The read operation is only used to read fixed data at fixed offsets
(UCSI_VERSION, UCSI_CCI, UCSI_MESSAGE_IN). In some cases drivers apply
offset-specific overrides. Split the read() operation into three
operations, read_version(), read_cci(), read_message_in().
Tested-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20240627-ucsi-rework-interface-v4-3-289ddc6874c7@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions