diff options
author | Hans de Goede <hdegoede@redhat.com> | 2020-07-24 19:46:59 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-07-29 14:11:05 +0200 |
commit | 8afe9a3548f9d1805dcea6d97978f2179c8403a3 (patch) | |
tree | 9a899de804a25f821f051c29c7c1760d15fddb07 /samples/trace_events/trace-events-sample.c | |
parent | 03eafcfb60c0da4f08a638f0dd5926fc2fc1d64a (diff) | |
download | linux-8afe9a3548f9d1805dcea6d97978f2179c8403a3.tar.bz2 |
usb: typec: tcpm: Refactor tcpm_handle_vdm_request payload handling
Refactor the tcpm_handle_vdm_request payload handling by doing the
endianness conversion only once directly inside tcpm_handle_vdm_request
itself instead of doing it multiple times inside various helper functions
called by tcpm_handle_vdm_request.
This is a preparation patch for some further refactoring to fix an AB BA
lock inversion between the tcpm code and some altmode drivers.
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20200724174702.61754-3-hdegoede@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples/trace_events/trace-events-sample.c')
0 files changed, 0 insertions, 0 deletions