summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/module.c
diff options
context:
space:
mode:
authorJohan Hovold2016-07-20 16:40:20 +0200
committerGreg Kroah-Hartman2016-07-20 19:16:54 +0200
commita212b7586712208804d3d51efa9fdf6e23b2480a (patch)
tree0b7e9a3c655c1ff196fac6ed14593d9c0c029b95 /drivers/staging/greybus/module.c
parentgreybus: module: suppress activation error message for dummy interfaces (diff)
downloadkernel-qcow2-linux-a212b7586712208804d3d51efa9fdf6e23b2480a.tar.gz
kernel-qcow2-linux-a212b7586712208804d3d51efa9fdf6e23b2480a.tar.xz
kernel-qcow2-linux-a212b7586712208804d3d51efa9fdf6e23b2480a.zip
greybus: interface: use an enum for interface type
Use an enum for the interface type instead of using the SVC protocol values directly. Suggested-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Reviewed-by: Alex Elder <elder@linaro.org> Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Sandeep Patil <sspatil@google.com> Reviewed-by: Patrick Titiano <ptitiano@baylibre.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/module.c')
-rw-r--r--drivers/staging/greybus/module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/module.c b/drivers/staging/greybus/module.c
index 242be493cb53..3ae58768cc87 100644
--- a/drivers/staging/greybus/module.c
+++ b/drivers/staging/greybus/module.c
@@ -153,7 +153,7 @@ static void gb_module_register_interface(struct gb_interface *intf)
break;
}
if (ret) {
- if (intf->type != GB_SVC_INTF_TYPE_DUMMY) {
+ if (intf->type != GB_INTERFACE_TYPE_DUMMY) {
dev_err(&module->dev,
"failed to activate interface %u: %d\n",
intf_id, ret);