]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/staging/greybus/operation.c
greybus: operation: create gb_operation_sync for sending "simple" messages
authorGreg Kroah-Hartman <greg@kroah.com>
Mon, 24 Nov 2014 19:19:13 +0000 (11:19 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Mon, 24 Nov 2014 20:56:51 +0000 (12:56 -0800)
commit10aa801d331609c38a58e0c4e73fd31103ffa230
treea7663850a4645e2e74ccda07820a8bfc0cac80e2
parent10c69399043351e5c68f07bedd14fe2fdbf32cb4
greybus: operation: create gb_operation_sync for sending "simple" messages

Everyone keeps doing the same create/send/destroy logic all over the
place, so abstract that out to a simple function that can handle any
arbritrary request and/or response.  This will let us save lots of
duplicated logic in the protocol drivers.

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