diff options
author | Greg Kroah-Hartman <greg@kroah.com> | 2014-12-24 13:01:45 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <greg@kroah.com> | 2015-01-02 13:06:48 -0800 |
commit | 7422a1ec2e208762cacd3c3368e6313046b3e3d5 (patch) | |
tree | 3842f7dcee433a09fdf82852cf2a7c04033fc56c /drivers/staging/greybus/protocol.h | |
parent | greybus: module: get rid of global list of modules (diff) | |
download | linux-7422a1ec2e208762cacd3c3368e6313046b3e3d5.tar.gz linux-7422a1ec2e208762cacd3c3368e6313046b3e3d5.tar.bz2 linux-7422a1ec2e208762cacd3c3368e6313046b3e3d5.zip |
greybus: protocol: name protocols.
We want to be able to "blame" a protocol for things at times, so give
them a name we can refer to them by. Announce when they are added or
removed from the system so we have a chance to know what is going on
in the kernel logs.
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Diffstat (limited to 'drivers/staging/greybus/protocol.h')
-rw-r--r-- | drivers/staging/greybus/protocol.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/greybus/protocol.h b/drivers/staging/greybus/protocol.h index 2d4fcfac8052..8bda524a4d6d 100644 --- a/drivers/staging/greybus/protocol.h +++ b/drivers/staging/greybus/protocol.h @@ -35,6 +35,7 @@ struct gb_protocol { gb_connection_exit_t connection_exit; gb_request_recv_t request_recv; struct module *owner; + char *name; }; int __gb_protocol_register(struct gb_protocol *protocol, struct module *module); |