]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
greybus: fix uart request_operation()
authorAlex Elder <elder@linaro.org>
Wed, 19 Nov 2014 22:29:15 +0000 (16:29 -0600)
committerGreg Kroah-Hartman <greg@kroah.com>
Thu, 20 Nov 2014 00:45:29 +0000 (16:45 -0800)
commitbc091356ccbf2e08b2a8818efce043669f131e59
tree40b92019c2a9a6aa2558d51c39fb706326f83211
parent0bbfe04cd945df79c52924284b2242508fef4e47
greybus: fix uart request_operation()

This fixes a problem similar to what was found in the battery
protcool driver code.

There's no need to allocate a local buffer, that already set up
by gb_operation_create().  Just use that instead.

Change a few variable names to reflect that they hold response
messages, not request messages.

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