]> www.infradead.org Git - users/jedix/linux-maple.git/commit
usb: typec: ucsi: Common function for the GET_PD_MESSAGE command
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Fri, 16 Aug 2024 13:58:57 +0000 (16:58 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Aug 2024 10:47:38 +0000 (18:47 +0800)
commit9289e6f5ee679629e2ece4b87dc14ee6e1e1dfc3
tree6961d99d0bbbc89b402f6a3090da34a45777c164
parent73910c511b1a665a993d66dceb0ffafbacd2ece6
usb: typec: ucsi: Common function for the GET_PD_MESSAGE command

So far that command was only used to read the response to
the Discover Identity Request, but it is handled with two
separate functions, which is not really necessary. Squashing
the command execution into a single function. That function
can now also be used to read other messages on top of the
Request Identity response.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20240816135859.3499351-5-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/ucsi/ucsi.c
drivers/usb/typec/ucsi/ucsi.h