diff options
author | Heikki Krogerus <heikki.krogerus@linux.intel.com> | 2024-11-06 17:06:05 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-11-07 10:02:36 +0100 |
commit | 226ff2e681d006eada59a9693aa1976d4c15a7d4 (patch) | |
tree | 8e6ce14e3f349d72a0493fa6fe982e64288ad0eb /drivers/usb/cdns3/cdnsp-debug.h | |
parent | 474538b8dd1cd9c666e56cfe8ef60fbb0fb513f4 (diff) |
usb: typec: ucsi: Convert connector specific commands to bitmaps
That allows the fields in those command data structures to
be easily validated. If an unsupported field is accessed, a
warning is generated.
This will not force UCSI version checks to be made in every
place where these data structures are accessed, but it will
make it easier to pinpoint issues that are caused by the
unconditional accesses to those fields, and perhaps more
importantly, allow those issues to be noticed immediately.
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20241106150605.1017744-1-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/cdns3/cdnsp-debug.h')
0 files changed, 0 insertions, 0 deletions