Commit 6217728
committed
pinctrl: intel: Move default strength assignment to a switch-case
iWhen ->pin_config_set() is called from the GPIO library (assumed
GpioIo() ACPI resource), the argument can be 1, when, for example,
PullDefault is provided. In such case we supply sane default in
the driver. Move that default assingment to a switch-case, so
it will be consolidated in one place.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>1 parent 0a4cfed commit 6217728
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
677 | 677 | | |
678 | 678 | | |
679 | 679 | | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | 680 | | |
685 | 681 | | |
686 | 682 | | |
| |||
690 | 686 | | |
691 | 687 | | |
692 | 688 | | |
| 689 | + | |
693 | 690 | | |
694 | 691 | | |
695 | 692 | | |
| |||
716 | 713 | | |
717 | 714 | | |
718 | 715 | | |
| 716 | + | |
719 | 717 | | |
720 | 718 | | |
721 | 719 | | |
| |||
0 commit comments