greybus: endo: encapsulate computing the max interface id
authorAlex Elder <elder@linaro.org>
Fri, 22 May 2015 17:56:46 +0000 (12:56 -0500)
committerGreg Kroah-Hartman <gregkh@google.com>
Sat, 23 May 2015 23:44:45 +0000 (16:44 -0700)
commit8a760437229ac327796902098f402ef75955b520
tree6dd3ee877dacafe1f1fe99dbc35acc2537d7d292
parent22e17edaa7c24d254e572738420873813f47efb5
greybus: endo: encapsulate computing the max interface id

The maximum interface id on an Endo is the result of a non-trivial
calculation.  It'll be needed for an upcoming patch, so create a
macro to compute it.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/endo.c