Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: generic: rename input schmitt disable

Rename PIN_CONFIG_INPUT_SCHMITT_DISABLE to
PIN_CONFIG_INPUT_SCHMITT_ENABLE. It's used to make it more generialize.

Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Haojian Zhuang and committed by
Linus Walleij
ea27c396 6f9e41f4

+5 -3
+1 -1
drivers/pinctrl/pinconf-generic.c
··· 41 41 PCONFDUMP(PIN_CONFIG_DRIVE_PUSH_PULL, "output drive push pull", NULL), 42 42 PCONFDUMP(PIN_CONFIG_DRIVE_OPEN_DRAIN, "output drive open drain", NULL), 43 43 PCONFDUMP(PIN_CONFIG_DRIVE_OPEN_SOURCE, "output drive open source", NULL), 44 - PCONFDUMP(PIN_CONFIG_INPUT_SCHMITT_DISABLE, "input schmitt disabled", NULL), 44 + PCONFDUMP(PIN_CONFIG_INPUT_SCHMITT_ENABLE, "input schmitt enabled", NULL), 45 45 PCONFDUMP(PIN_CONFIG_INPUT_SCHMITT, "input schmitt trigger", NULL), 46 46 PCONFDUMP(PIN_CONFIG_INPUT_DEBOUNCE, "input debounce", "time units"), 47 47 PCONFDUMP(PIN_CONFIG_POWER_SOURCE, "pin power source", "selector"),
+4 -2
include/linux/pinctrl/pinconf-generic.h
··· 48 48 * argument is ignored. 49 49 * @PIN_CONFIG_DRIVE_STRENGTH: the pin will output the current passed as 50 50 * argument. The argument is in mA. 51 - * @PIN_CONFIG_INPUT_SCHMITT_DISABLE: disable schmitt-trigger mode on the pin. 51 + * @PIN_CONFIG_INPUT_SCHMITT_ENABLE: control schmitt-trigger mode on the pin. 52 + * If the argument != 0, schmitt-trigger mode is enabled. If it's 0, 53 + * schmitt-trigger mode is disabled. 52 54 * @PIN_CONFIG_INPUT_SCHMITT: this will configure an input pin to run in 53 55 * schmitt-trigger mode. If the schmitt-trigger has adjustable hysteresis, 54 56 * the threshold value is given on a custom format as argument when ··· 84 82 PIN_CONFIG_DRIVE_OPEN_DRAIN, 85 83 PIN_CONFIG_DRIVE_OPEN_SOURCE, 86 84 PIN_CONFIG_DRIVE_STRENGTH, 87 - PIN_CONFIG_INPUT_SCHMITT_DISABLE, 85 + PIN_CONFIG_INPUT_SCHMITT_ENABLE, 88 86 PIN_CONFIG_INPUT_SCHMITT, 89 87 PIN_CONFIG_INPUT_DEBOUNCE, 90 88 PIN_CONFIG_POWER_SOURCE,