greybus: interface: clean up device-id handling
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 29 Mar 2016 22:56:06 +0000 (18:56 -0400)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 30 Mar 2016 21:23:19 +0000 (14:23 -0700)
commite9f2f688d1a9434f615eec7180f14f0c52941bb9
tree673b9c1e802a8798c43616321f3d5b934418e574
parent984c9d38ae370993f28b36c8be9923b1de39f5e7
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>
drivers/staging/greybus/bundle.h
drivers/staging/greybus/greybus_protocols.h
drivers/staging/greybus/interface.c
drivers/staging/greybus/interface.h