diff options
| author | Dan Carpenter <dan.carpenter@linaro.org> | 2026-03-23 22:01:15 +0300 |
|---|---|---|
| committer | Linus Walleij <linusw@kernel.org> | 2026-03-24 13:50:30 +0100 |
| commit | 9ea2647b0089ce8d7e2723eda4c77cbc55f8b7c5 (patch) | |
| tree | b9f0c42792de50f21cea7127bad77ce8223a52fa /arch/v850/kernel/git@git.tavy.me:linux.git | |
| parent | 96b76f7bc575ac6c69090f4642e424b04fb6784c (diff) | |
pinctrl: scmi: Add SCMI_PIN_INPUT_VALUE
The PIN_CONFIG_LEVEL parameter represents the value of the pin, whether
reading or writing to the pin. In SCMI, the parameter is represented by
two different values SCMI_PIN_OUTPUT_VALUE for writing to a pin and
SCMI_PIN_INPUT_VALUE for reading. The current code translates
PIN_CONFIG_LEVEL as SCMI_PIN_OUTPUT_VALUE (writing).
Add a function to translate it to either INPUT or OUTPUT depending on
whether it is called from a _get or _set() operation.
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Acked-by: Sudeep Holla <sudeep.holla@kernel.org>
Signed-off-by: Linus Walleij <linusw@kernel.org>
Diffstat (limited to 'arch/v850/kernel/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
