linux/drivers/pinctrl
Stephen Warren 5d2eaf8090 pinctrl: Don't copy function name when requesting a pin
Instead, store a pointer to the currently assigned function.

This allows us to delete the mux_requested variable from pin_desc; a pin
is requested if its currently assigned function is non-NULL.

When a pin is requested as a GPIO rather than a regular function, the
assigned function name is dynamically constructed. In this case, we have
to kstrdup() the dynamically constructed name, so that mux_function doesn't
pointed at stack data. This requires pin_free to be told whether to free
the mux_function pointer or not.

This removes the hard-coded maximum function name length.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2011-10-20 11:50:07 +02:00
..
core.c pinctrl: Don't copy pin names when registering them 2011-10-20 11:50:06 +02:00
core.h pinctrl: Don't copy function name when requesting a pin 2011-10-20 11:50:07 +02:00
Kconfig pinctrl: add a driver for the CSR SiRFprimaII pinmux 2011-10-13 12:57:46 +02:00
Makefile pinctrl: add a driver for the CSR SiRFprimaII pinmux 2011-10-13 12:57:46 +02:00
pinmux-sirf.c pinctrl: Remove unsafe __refdata 2011-10-20 11:49:53 +02:00
pinmux-u300.c pinctrl: Remove unsafe __refdata 2011-10-20 11:49:53 +02:00
pinmux.c pinctrl: Don't copy function name when requesting a pin 2011-10-20 11:50:07 +02:00
pinmux.h