greybus: define the invalid operation type symbolically
authorAlex Elder <elder@linaro.org>
Tue, 2 Dec 2014 23:25:11 +0000 (17:25 -0600)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 2 Dec 2014 23:41:20 +0000 (15:41 -0800)
commitc939c2f8fe85a8099d553ae5c12b9a24ef735d05
treebb1a32441b3400e290e959bc9dd9aca878c72db6
parent6cd6ec55f4940bcddeed65e4eebb6190a64a4eb7
greybus: define the invalid operation type symbolically

Use a symbolic constant (rather than just "0") to represent an
explicitly invalid operation type.  The protocols have all reserved
that value for that purpose--this just makes it explicit in the core
code (since we now leverage its existence).  Fix the code so it uses
the new symbolic value.

Define it in "operation.h" for all to see.  Move the common
definition of the GB_OPERATION_TYPE_RESPONSE flag mask there
as well.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/operation.c
drivers/staging/greybus/operation.h