From ce4362546612c00a059c255f5c55373d6ee1022a Mon Sep 17 00:00:00 2001 From: Stephen Warren Date: Fri, 7 Mar 2014 12:22:16 -0700 Subject: [PATCH] pinctrl: tegra: dynamically calculate function list of groups The per-SoC data structures for Tegra pinctrl stored some information in a redundant way. Specifically, the list of groups that each function could be muxed onto was stored once explicitly, and also as part of the definition of each group. Eliminate this redundancy, and calculate each function's list of valid groups at pinctrl probe time. This removes thousands of lines of code from the pinctrl driver and ~16K from the vmlinux binary size, and adds only about 500uS to the boot process (on Tegra30; newer SoCs will likely be faster still). Signed-off-by: Stephen Warren Signed-off-by: Linus Walleij --- Reading git-format-patch failed