]> git.karo-electronics.de Git - karo-tx-linux.git/commit
greybus: get rid of gbuf->hdpriv
authorAlex Elder <elder@linaro.org>
Mon, 6 Oct 2014 11:53:13 +0000 (06:53 -0500)
committerGreg Kroah-Hartman <greg@kroah.com>
Mon, 6 Oct 2014 15:56:43 +0000 (08:56 -0700)
commite8caf9a31b90d7c596cfcd5810dbf6910f3cbcc6
treebff2bb4877c2b0f55efb8617095a85f3f135f098
parentfdb594f1366327f10cbc8167a9923a5e88a381fa
greybus: get rid of gbuf->hdpriv

Last time I tried to kill off gbuf->context my efforts were shot
down.  Now that I've got the connection infrastructure in place,
maybe I'll have more luck getting rid of gbuf->hdpriv.

The only place it's used is to stash the es1_ap_dev structure
pointer in the buffer.  But that information is now available
through the buffer's connection, so we don't need to use the
hdpriv field any more.

So get rid of it, and use hd_to_es1(gbuf->connection->hd) to
get at what we need.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/es1-ap-usb.c
drivers/staging/greybus/greybus.h