Commit dc850fa
Bartosz Golaszewski
hte: tegra194: don't access struct gpio_chip
Using struct gpio_chip is not safe as it will disappear if the
underlying driver is unbound for any reason. Switch to using reference
counted struct gpio_device and its dedicated accessors.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tested-by: Dipen Patel <dipenp@nvidia.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
[andy: used gpio_device_find_by_fwnode()]
Reviewed-by: Dipen Patel <dipenp@nvidia.com>
Link: https://lore.kernel.org/r/20231010151709.4104747-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>1 parent 8c85a10 commit dc850fa
1 file changed
Lines changed: 16 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| |||
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
421 | | - | |
| 421 | + | |
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
| |||
645 | 645 | | |
646 | 646 | | |
647 | 647 | | |
648 | | - | |
| 648 | + | |
649 | 649 | | |
650 | 650 | | |
651 | 651 | | |
| |||
673 | 673 | | |
674 | 674 | | |
675 | 675 | | |
676 | | - | |
| 676 | + | |
677 | 677 | | |
678 | | - | |
679 | | - | |
| 678 | + | |
680 | 679 | | |
681 | | - | |
682 | | - | |
683 | | - | |
| 680 | + | |
684 | 681 | | |
685 | 682 | | |
686 | 683 | | |
| |||
760 | 757 | | |
761 | 758 | | |
762 | 759 | | |
763 | | - | |
764 | | - | |
| 760 | + | |
| 761 | + | |
765 | 762 | | |
766 | 763 | | |
767 | 764 | | |
| |||
772 | 769 | | |
773 | 770 | | |
774 | 771 | | |
775 | | - | |
776 | | - | |
| 772 | + | |
| 773 | + | |
777 | 774 | | |
778 | 775 | | |
779 | 776 | | |
780 | | - | |
| 777 | + | |
781 | 778 | | |
782 | 779 | | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
783 | 785 | | |
784 | 786 | | |
785 | 787 | | |
| |||
0 commit comments