summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-lg4ff.c
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@linaro.org>2014-11-14 16:33:07 +0100
committerGrant Likely <grant.likely@linaro.org>2014-11-24 23:23:35 +0100
commitef8bbd73a76197cf8362a2b43aaadc5717bd0746 (patch)
tree85e5d8b9e98a1d7c2ac6c42e698dec4ac21a98b8 /drivers/hid/hid-lg4ff.c
parentMerge tag 'v3.18-rc6' into devicetree/next (diff)
downloadlinux-ef8bbd73a76197cf8362a2b43aaadc5717bd0746.tar.xz
linux-ef8bbd73a76197cf8362a2b43aaadc5717bd0746.zip
of: Use vargs in __of_node_alloc
The overlay code needs to construct a new full_name from the parent name and the node name, but the current method has to allocate and then free an temporary string which is wasteful. Fix this problem by using vargs to pass in a format and arguments into __of_node_alloc(). At the same time remove the allocflags argument to __of_node_alloc(). The only users all use GFP_KERNEL, so there is no need to provide it as an option. If there is ever a need later it can be added back. Signed-off-by: Grant Likely <grant.likely@linaro.org>
Diffstat (limited to 'drivers/hid/hid-lg4ff.c')
0 files changed, 0 insertions, 0 deletions