mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
When setting pin configuration in the pinctrl framework, pin_config_set() or pin_config_group_set() is called in a loop to set one configuration at a time for the specified pin or group. This patch 1) removes the loop and 2) changes the API to pass the whole pin config array to the driver. It is now up to the driver to loop through the configs. This allows the driver to potentially combine configs and reduce the number of writes to pin config registers. All c files changed have been build-tested to verify the change compiles and that the corresponding .o is successfully generated. Signed-off-by: Sherman Yin <[email protected]> Reviewed-by: Christian Daudt <[email protected]> Reviewed-by: Matt Porter <[email protected]> Tested-by: Stephen Warren <[email protected]> Acked-by: Laurent Pinchart <[email protected]> Signed-off-by: Linus Walleij <[email protected]>