greybus: use little-endian in PWM requests
authorAlex Elder <elder@linaro.org>
Tue, 2 Dec 2014 21:48:09 +0000 (15:48 -0600)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 2 Dec 2014 22:45:56 +0000 (14:45 -0800)
commit583d233fa9d6fffd028af5219bcb5753bcb7b5ef
tree9724b5b9fe06a9439ea60a6ca8883ebd22f37211
parent82e26f73b2a8ee4acc2507494430aa5774da2b74
greybus: use little-endian in PWM requests

The PWM config request defines two 32-bit values using u32. All
over-the-wire values have to be in little-endian format.  Fix this.

Signed-off-by: Alex Elder <elder@linaro.org>
Acked-by: Matt Porter <mporter@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/pwm-gb.c