greybus: fix op_cycle logic
authorAlex Elder <elder@linaro.org>
Tue, 21 Oct 2014 04:01:02 +0000 (23:01 -0500)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 21 Oct 2014 06:36:11 +0000 (14:36 +0800)
commit03130a77d52bd738cdcee17627aa5e3d19fdbeeb
tree4fa13a76220836fff51a3d2111fd8084a06338d6
parent1ec1d6dd357766cb6d1816ad61cc0f7ca3dbc960
greybus: fix op_cycle logic

The function that computes the operation id for a connection is
wrongly using MOD rather than AND.  Fix that.

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