summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/interface.h
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2016-03-29 18:56:06 -0400
committerGreg Kroah-Hartman <gregkh@google.com>2016-03-30 14:23:19 -0700
commite9f2f688d1a9434f615eec7180f14f0c52941bb9 (patch)
tree673b9c1e802a8798c43616321f3d5b934418e574 /drivers/staging/greybus/interface.h
parent984c9d38ae370993f28b36c8be9923b1de39f5e7 (diff)
greybus: interface: clean up device-id handling
Clean up the device id-handling and make sure we never allocate invalid device ids due to a missing upper bound. Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/interface.h')
-rw-r--r--drivers/staging/greybus/interface.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/interface.h b/drivers/staging/greybus/interface.h
index 5dfaea51eb9f..8b6fcfe90883 100644
--- a/drivers/staging/greybus/interface.h
+++ b/drivers/staging/greybus/interface.h
@@ -21,7 +21,7 @@ struct gb_interface {
struct list_head links; /* gb_host_device->interfaces */
struct list_head manifest_descs;
u8 interface_id; /* Physical location within the Endo */
- u8 device_id; /* Device id allocated for the interface block by the SVC */
+ u8 device_id;
/* Information taken from the manifest descriptor */
char *vendor_string;