]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
greybus: set up connection->private properly
authorAlex Elder <elder@linaro.org>
Wed, 3 Dec 2014 18:27:42 +0000 (12:27 -0600)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 3 Dec 2014 23:08:17 +0000 (15:08 -0800)
commit93bbe859b75616ebdc33722c3b30cf36e74161a8
treebdba592c0e6d9c9d89e94b6af571dec166cbdd12
parent62749a056ab48994956cf14abcd5622db4a4a0cb
greybus: set up connection->private properly

The connection->private pointer should refer to a protocol-specific
data structure.  Change two protocol drivers (USB and vibrator) so
they now set this.

In addition, because the setup routine may need access to the
data structure, the private pointer should be set early--as
early as possible.  Make the UART, i2c, and GPIO protocol drivers
set the private pointer earlier.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/gpio-gb.c
drivers/staging/greybus/i2c-gb.c
drivers/staging/greybus/pwm-gb.c
drivers/staging/greybus/uart-gb.c
drivers/staging/greybus/usb-gb.c
drivers/staging/greybus/vibrator-gb.c