Commit 6a32836
drm/rockchip: dw_hdmi: Use devm_regulator_get_enable()
The regulators are only enabled at bind() and disabled at unbind(),
hence replace the boilerplate code by making use of
devm_regulator_get_enable() helper.
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20240813-dw-hdmi-rockchip-cleanup-v1-3-b3e73b5f4fd6@collabora.com1 parent d2a80cb commit 6a32836
1 file changed
Lines changed: 6 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
82 | 80 | | |
83 | 81 | | |
84 | 82 | | |
| |||
236 | 234 | | |
237 | 235 | | |
238 | 236 | | |
239 | | - | |
240 | | - | |
241 | | - | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
242 | 240 | | |
243 | | - | |
244 | | - | |
245 | | - | |
| 241 | + | |
246 | 242 | | |
247 | | - | |
| 243 | + | |
248 | 244 | | |
249 | 245 | | |
250 | 246 | | |
| |||
602 | 598 | | |
603 | 599 | | |
604 | 600 | | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | | - | |
617 | 601 | | |
618 | 602 | | |
619 | 603 | | |
| |||
642 | 626 | | |
643 | 627 | | |
644 | 628 | | |
645 | | - | |
646 | | - | |
647 | | - | |
648 | | - | |
| 629 | + | |
649 | 630 | | |
650 | 631 | | |
651 | 632 | | |
| |||
656 | 637 | | |
657 | 638 | | |
658 | 639 | | |
659 | | - | |
660 | | - | |
661 | | - | |
662 | 640 | | |
663 | 641 | | |
664 | 642 | | |
| |||
0 commit comments