linux/drivers/pinctrl/bcm
Linus Walleij 203a83112e pinctrl: generic: rename PIN_CONFIG_OUTPUT to LEVEL
This generic pin config property is confusingly named so let's
rename it to make things clearer.

There are already drivers in the tree that use PIN_CONFIG_OUTPUT
to *read* the value of an output driven pin, which is a big
semantic confusion for the head: are we then reading the
setting of the output or the actual value/level that is put
out on the pin?

We already have PIN_CONFIG_OUTPUT_ENABLE that turns on driver
buffers for output, so this can by logical conclusion only
drive the voltage level if it should be any different.

But if we read the pin, are we then reading the *setting* of
the output value or the *actual* value we can see on the
line?

If the pin has not first been set into output mode with
PIN_CONFIG_OUTPUT_ENABLE, but is instead in some input mode
or tristate, what will reading this property actually
return?

Reading the current users reading this property it is clear
that what we read is the logical level of the pin as 0 or 1
depending on if it is low or high.

Rename it to PIN_CONFIG_LEVEL so it is crystal clear that
we set or read the voltage level of the pin and nothing else.

Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2025-09-08 14:24:20 +02:00
..
Kconfig pinctrl: bcm: Add STB family pin controller driver 2025-09-08 14:23:42 +02:00
Kconfig.stb pinctrl: bcm: Add STB family pin controller driver 2025-09-08 14:23:42 +02:00
Makefile pinctrl: bcm: Add STB family pin controller driver 2025-09-08 14:23:42 +02:00
pinctrl-bcm63xx.c pinctrl: bcm: bcm63xx: Use scope based of_node_put() cleanups 2024-06-26 11:59:00 +02:00
pinctrl-bcm63xx.h pinctrl: bcm: Convert drivers to use struct pingroup and PINCTRL_PINGROUP() 2022-08-25 13:57:00 +02:00
pinctrl-bcm281xx.c pinctrl: bcm281xx: Add missing assignment in bcm21664_pinctrl_lock_all() 2025-03-17 14:24:45 +01:00
pinctrl-bcm2835.c pinctrl: generic: rename PIN_CONFIG_OUTPUT to LEVEL 2025-09-08 14:24:20 +02:00
pinctrl-bcm4908.c pinctrl: bcm: Constify static 'pinctrl_desc' 2025-06-18 13:26:36 +02:00
pinctrl-bcm6318.c pinctrl: bcm: Convert drivers to use struct pingroup and PINCTRL_PINGROUP() 2022-08-25 13:57:00 +02:00
pinctrl-bcm6328.c pinctrl: bcm: Remove unused struct bcm6328_pingroup 2022-10-04 09:39:22 +02:00
pinctrl-bcm6358.c pinctrl: bcm: use PTR_ERR_OR_ZERO() to simplify code 2025-08-19 12:14:15 +02:00
pinctrl-bcm6362.c pinctrl: bcm: Convert drivers to use struct pingroup and PINCTRL_PINGROUP() 2022-08-25 13:57:00 +02:00
pinctrl-bcm6368.c pinctrl: bcm: Convert drivers to use struct pingroup and PINCTRL_PINGROUP() 2022-08-25 13:57:00 +02:00
pinctrl-bcm63268.c pinctrl: bcm: Convert drivers to use struct pingroup and PINCTRL_PINGROUP() 2022-08-25 13:57:00 +02:00
pinctrl-brcmstb-bcm2712.c pinctrl: bcm: Add STB family pin controller driver 2025-09-08 14:23:42 +02:00
pinctrl-brcmstb.c pinctrl: bcm: Add STB family pin controller driver 2025-09-08 14:23:42 +02:00
pinctrl-brcmstb.h pinctrl: bcm: Add STB family pin controller driver 2025-09-08 14:23:42 +02:00
pinctrl-cygnus-mux.c pinctrl: bcm: cygnus-mux: Move fixed assignments to 'pinctrl_desc' definition 2025-06-18 13:26:36 +02:00
pinctrl-iproc-gpio.c treewide: rename GPIO set callbacks back to their original names 2025-08-07 10:07:06 +02:00
pinctrl-ns.c pinctrl: bcm: Constify static 'pinctrl_desc' 2025-06-18 13:26:36 +02:00
pinctrl-ns2-mux.c pinctrl: bcm: cygnus-ns2: Move fixed assignments to 'pinctrl_desc' definition 2025-06-18 13:26:36 +02:00
pinctrl-nsp-gpio.c treewide: rename GPIO set callbacks back to their original names 2025-08-07 10:07:06 +02:00
pinctrl-nsp-mux.c pinctrl: bcm: cygnus-nsp: Move fixed assignments to 'pinctrl_desc' definition 2025-06-18 13:26:36 +02:00