Commit 2b64c6f
hwmon: (lm75) simplify regulator handling
devm_regulator_get_enable() was introduced exactly to avoid open coding
regulator handling like in this driver. Make use of this helper.
Signed-off-by: Wolfram Sang <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>1 parent c4d08cf commit 2b64c6f
1 file changed
+3
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
113 | 112 | | |
114 | 113 | | |
115 | 114 | | |
| |||
621 | 620 | | |
622 | 621 | | |
623 | 622 | | |
624 | | - | |
625 | | - | |
626 | | - | |
627 | | - | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | 623 | | |
632 | 624 | | |
633 | 625 | | |
| |||
656 | 648 | | |
657 | 649 | | |
658 | 650 | | |
659 | | - | |
660 | | - | |
661 | | - | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
662 | 654 | | |
663 | 655 | | |
664 | 656 | | |
| |||
675 | 667 | | |
676 | 668 | | |
677 | 669 | | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | | - | |
685 | | - | |
686 | | - | |
687 | | - | |
688 | | - | |
689 | 670 | | |
690 | 671 | | |
691 | 672 | | |
| |||
0 commit comments