Input: yealink - define packet offset __be16 instead of u16
authorMartin Kepplinger <martin.kepplinger@ginzinger.com>
Tue, 11 Apr 2017 03:39:22 +0000 (20:39 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 11 Apr 2017 03:41:41 +0000 (20:41 -0700)
commitc5cb37d0d62c58320f0a86777b738fb28272245b
tree75921a7663c9be4ce0105c6c2a02f5caacbf3e34
parentbee84493318843ffba9705924469369b9b244ddf
Input: yealink - define packet offset __be16 instead of u16

sparse says

 warning: incorrect type in assignment (different base types)
    expected unsigned short [unsigned] [usertype] offset
    got restricted __be16 [usertype] <noident>

for every usage of cpu_to_be16 in yealink.c. Defining it __be16 in the
first place shouldn't hurt.

Signed-off-by: Martin Kepplinger <martin.kepplinger@ginzinger.com>
Signed-off-by: Henk.Vergonet@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/yealink.h