summaryrefslogtreecommitdiff
path: root/drivers/net/bnx2x/bnx2x_stats.c
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2011-10-20 02:19:28 +0400
committerLinus Walleij <linus.walleij@linaro.org>2011-10-20 13:50:07 +0400
commit5d2eaf8090874f8e65388e82f7e91f9cef74885e (patch)
tree33ad36c3ddc8674c7d583ceec281cf613293cb13 /drivers/net/bnx2x/bnx2x_stats.c
parent9af1e44fb4a4c62a90bff9b095eb001764d91b65 (diff)
downloadlinux-5d2eaf8090874f8e65388e82f7e91f9cef74885e.tar.xz
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>
Diffstat (limited to 'drivers/net/bnx2x/bnx2x_stats.c')
0 files changed, 0 insertions, 0 deletions