]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
greybus: move methods into protocol
authorAlex Elder <elder@linaro.org>
Wed, 5 Nov 2014 22:12:54 +0000 (16:12 -0600)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 5 Nov 2014 22:23:50 +0000 (14:23 -0800)
commit5d9fd7e1ba801ff83bb657ad364581947400898c
tree4a7906c8d0667a5b0daa66abbf382941dc6ef008
parent19d03decd3415a7a0ec6c378720058f29f9568cc
greybus: move methods into protocol

Get rid of the connection handler structure, and instead put the
methods that were there into the protocol structure.

Eliminate the big switch statement in connection_init() and just
call the connection's protocol's init function there directly.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/battery-gb.c
drivers/staging/greybus/connection.c
drivers/staging/greybus/connection.h
drivers/staging/greybus/gpio-gb.c
drivers/staging/greybus/i2c-gb.c
drivers/staging/greybus/protocol.h
drivers/staging/greybus/sdio-gb.c
drivers/staging/greybus/uart-gb.c