Commit 078d830
committed
pinctrl: baytrail: Move default strength assignment to a switch-case
When ->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.
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>1 parent 5398a0e commit 078d830
1 file changed
Lines changed: 1 addition & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
810 | 810 | | |
811 | 811 | | |
812 | 812 | | |
| 813 | + | |
813 | 814 | | |
814 | 815 | | |
815 | 816 | | |
| |||
957 | 958 | | |
958 | 959 | | |
959 | 960 | | |
960 | | - | |
961 | | - | |
962 | | - | |
963 | | - | |
964 | 961 | | |
965 | 962 | | |
966 | 963 | | |
| |||
969 | 966 | | |
970 | 967 | | |
971 | 968 | | |
972 | | - | |
973 | | - | |
974 | | - | |
975 | | - | |
976 | 969 | | |
977 | 970 | | |
978 | 971 | | |
| |||
0 commit comments