Commit 2f10157
media: uvcvideo: Create uvc_pm_(get|put) functions
Most of the times that we have to call uvc_status_(get|put) we need to
call the usb_autopm_ functions.
Create a new pair of functions that automate this for us. This
simplifies the current code and future PM changes in the driver.
Reviewed-by: Hans de Goede <[email protected]>
Signed-off-by: Ricardo Ribalda <[email protected]>
Message-ID: <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>1 parent 14f6e20 commit 2f10157
2 files changed
+28
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
29 | 50 | | |
30 | 51 | | |
31 | 52 | | |
| |||
642 | 663 | | |
643 | 664 | | |
644 | 665 | | |
645 | | - | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | 666 | | |
650 | 667 | | |
651 | | - | |
652 | | - | |
| 668 | + | |
653 | 669 | | |
654 | | - | |
655 | 670 | | |
656 | | - | |
| 671 | + | |
657 | 672 | | |
658 | | - | |
659 | 673 | | |
660 | 674 | | |
661 | 675 | | |
| |||
690 | 704 | | |
691 | 705 | | |
692 | 706 | | |
693 | | - | |
694 | | - | |
695 | | - | |
| 707 | + | |
696 | 708 | | |
697 | 709 | | |
698 | 710 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
768 | 768 | | |
769 | 769 | | |
770 | 770 | | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
771 | 775 | | |
772 | 776 | | |
773 | 777 | | |
| |||
0 commit comments