Commit 5d98079
HID: pidff: Factor out pool report fetch and remove excess declaration
We only want to refetch the pool report during device init. Reset
function is now called when uploading effects to an empty device so
extract pool fetch to separate function and call it from init before
autocenter check (autocenter check triggered reset during init).
Remove a superfluous pointer declaration and assigment as well.
Signed-off-by: Tomasz Pakuła <[email protected]>
Reviewed-by: Michał Kopeć <[email protected]>
Reviewed-by: Paul Dino Jones <[email protected]>
Tested-by: Paul Dino Jones <[email protected]>
Tested-by: Cristóferson Bueno <[email protected]>
Tested-by: Pablo Cisneros <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>1 parent 2175516 commit 5d98079
1 file changed
+24
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
591 | 591 | | |
592 | 592 | | |
593 | 593 | | |
594 | | - | |
595 | 594 | | |
596 | 595 | | |
597 | 596 | | |
598 | | - | |
599 | | - | |
600 | 597 | | |
601 | 598 | | |
602 | 599 | | |
603 | 600 | | |
604 | 601 | | |
605 | 602 | | |
606 | 603 | | |
| 604 | + | |
607 | 605 | | |
608 | | - | |
609 | | - | |
610 | | - | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
611 | 613 | | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | | - | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | | - | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
624 | 627 | | |
625 | 628 | | |
626 | 629 | | |
| |||
916 | 919 | | |
917 | 920 | | |
918 | 921 | | |
919 | | - | |
920 | | - | |
921 | | - | |
| 922 | + | |
922 | 923 | | |
923 | 924 | | |
924 | 925 | | |
| |||
1424 | 1425 | | |
1425 | 1426 | | |
1426 | 1427 | | |
| 1428 | + | |
| 1429 | + | |
1427 | 1430 | | |
1428 | 1431 | | |
1429 | 1432 | | |
| |||
0 commit comments