public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* usb: typec: Missing link for altmode active store
@ 2017-04-16 19:28 Mats Karrman
  2017-04-18 14:20 ` Heikki Krogerus
  0 siblings, 1 reply; 2+ messages in thread
From: Mats Karrman @ 2017-04-16 19:28 UTC (permalink / raw)
  To: Heikki Krogerus; +Cc: Guenter Roeck, Felipe Balbi, linux-usb, linux-kernel

Hello Heikki,

I'm working with the new typec class code and have run into a problem.
The struct typec_capability defines a callback function as:

int (*activate_mode)(const struct typec_capability *, int mode, int activate);

 From the capability I can get to the corresponding port/plug/partner private
data and to the svid's registered for that device.
The mode argument tells me which of the modes registered for a svid that is to
be (de)activated.
However, as far as I can tell there is no way for activate_mode() to find out
which svid is in question without an additional argument, e.g. "u16 svid".

Please correct me if I'm wrong.

BR,
Mats

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-18 14:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-16 19:28 usb: typec: Missing link for altmode active store Mats Karrman
2017-04-18 14:20 ` Heikki Krogerus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox