]> git.karo-electronics.de Git - linux-beck.git/commit
greybus: legacy: look up protocol at connection creation
authorJohan Hovold <johan@hovoldconsulting.com>
Thu, 21 Jan 2016 16:34:20 +0000 (17:34 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 22 Jan 2016 06:46:38 +0000 (22:46 -0800)
commit2399032d7262f2a5dc1f22380d23b17971ed22e4
treec25cc85b33919940bcc08e5e236ac8a0e8624a37
parent63cf52f79b4c9f73657285031427ca748d11ce86
greybus: legacy: look up protocol at connection creation

Look up legacy protocol at connection create instead of at init.

Note that we can now look up the protocol before even creating the
actual connection. This is needed to be able to set a connection request
handler when creating the connection rather than when enabling it.

Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/legacy.c