diff options
| author | Jani Nikula <jani.nikula@intel.com> | 2026-09-16 11:29:32 +0300 |
|---|---|---|
| committer | Jani Nikula <jani.nikula@intel.com> | 2026-09-22 16:37:33 +0300 |
| commit | 40564c8c7bb383c95739b5af62e90766b5d32759 (patch) | |
| tree | f8431cf5ce5ece34994db5c46b36a055e3cbed65 /rust/kernel/alloc/kvec/errors.rs | |
| parent | 4ffea6c107c835264577bc4ffc30f4fd8debc313 (diff) | |
drm/i915/lspcon: use u8 variable to hold 1-byte DPCD reads
Passing a pointer to a u32 variable for a 1-byte reads is error prone,
and only works because it's always initialized to 0 before the read, and
the code's running on little-endian CPUs. Switch to u8 variables.
In _lspcon_write_avi_infoframe_mca(), add a separate variable to hold
the number of bytes written instead of reusing the same variable for two
purposes.
Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
Link: https://patch.msgid.link/66a74267a3da7619dda8dc2b1bb1bfcedc25df0d.1789547331.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions
