greybus: svc: fix endianness for svc message
authorRui Miguel Silva <rui.silva@linaro.org>
Tue, 15 Sep 2015 14:33:51 +0000 (15:33 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 15 Sep 2015 16:05:33 +0000 (09:05 -0700)
commit2498050b03399cc0df32863f9a4c2a63b1f30d79
tree5086a9bafdfa12f82f25995d05105dcf08c1dc21
parentcfb16906860d76b5afe192d32fb79cf9af853b92
greybus: svc: fix endianness for svc message

Some fields in svc request were not being set with the correct
endianness, which will trigger the following sparse issues as example:

greybus/svc.c:116:22: warning: incorrect type in assignment (different base types)
greybus/svc.c:116:22:    expected unsigned short [unsigned] [assigned] [usertype] attr
greybus/svc.c:116:22:    got restricted __le16 [usertype] <noident>

Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/greybus_protocols.h
drivers/staging/greybus/svc.c