OSDN Git Service

greybus: endo: Add code to validate Endo ID
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 8 May 2015 07:28:50 +0000 (12:58 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Mon, 11 May 2015 20:30:09 +0000 (13:30 -0700)
commit4f4cc1bf070e05d4ee54e569e7ec87168fa8e284
tree17f0f0a5a36078e9e5087d17b89e871bc829668e
parent61c0926eec4153e51f047fbf91b897abeca4cccb
greybus: endo: Add code to validate Endo ID

Endo is described by a 16 bit value. Which represents the properties of
modules, interface and ribs on front and back of endo.

This 16 bit value can be used to find all possible pairs of modules and
interfaces and creating modules based on that.

This patch provides helpers to parse 16 bit Endo ID.

(Based on original code written by Alex Elder.)

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