diff options
author | Martin Kepplinger <martin.kepplinger@ginzinger.com> | 2017-04-10 20:39:22 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-04-10 20:41:41 -0700 |
commit | c5cb37d0d62c58320f0a86777b738fb28272245b (patch) | |
tree | 75921a7663c9be4ce0105c6c2a02f5caacbf3e34 /drivers/input/misc/yealink.h | |
parent | bee84493318843ffba9705924469369b9b244ddf (diff) | |
download | op-kernel-dev-c5cb37d0d62c58320f0a86777b738fb28272245b.zip op-kernel-dev-c5cb37d0d62c58320f0a86777b738fb28272245b.tar.gz |
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>
Diffstat (limited to 'drivers/input/misc/yealink.h')
-rw-r--r-- | drivers/input/misc/yealink.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/misc/yealink.h b/drivers/input/misc/yealink.h index 1e0f523..934c247 100644 --- a/drivers/input/misc/yealink.h +++ b/drivers/input/misc/yealink.h @@ -28,7 +28,7 @@ struct yld_ctl_packet { u8 cmd; /* command code, see below */ u8 size; /* 1-11, size of used data bytes. */ - u16 offset; /* internal packet offset */ + __be16 offset; /* internal packet offset */ u8 data[11]; s8 sum; /* negative sum of 15 preceding bytes */ } __attribute__ ((packed)); |