Commit 6a46289
HID: hyperv: remove unused struct synthhid_msg
struct synthhid_msg was meant to be a generic representation of the
possible protocol messages sent through VMBus. In practice, only the
header is read and depending on the message type, a cast to the actual
type is done. Also, SYNTHHID_MAX_INPUT_REPORT_SIZE constant isn't used
which I suspect is a leftover from the refactoring made while this
driver was at the staging folder.
This patch removes struct synthhid_msg and refactor the code
accordingly.
Signed-off-by: Paulo Miguel Almeida <paulo.miguel.almeida.rodenas@gmail.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>1 parent 542f25a commit 6a46289
1 file changed
+4
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 25 | | |
29 | 26 | | |
30 | 27 | | |
| |||
59 | 56 | | |
60 | 57 | | |
61 | 58 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | 59 | | |
68 | 60 | | |
69 | 61 | | |
| |||
251 | 243 | | |
252 | 244 | | |
253 | 245 | | |
254 | | - | |
| 246 | + | |
255 | 247 | | |
256 | 248 | | |
257 | 249 | | |
| |||
262 | 254 | | |
263 | 255 | | |
264 | 256 | | |
265 | | - | |
| 257 | + | |
266 | 258 | | |
267 | | - | |
| 259 | + | |
268 | 260 | | |
269 | 261 | | |
270 | 262 | | |
| |||
309 | 301 | | |
310 | 302 | | |
311 | 303 | | |
312 | | - | |
| 304 | + | |
313 | 305 | | |
314 | 306 | | |
315 | 307 | | |
| |||
0 commit comments