summaryrefslogtreecommitdiff
path: root/fs/pnode.h
diff options
context:
space:
mode:
authorRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>2015-03-30 10:45:59 -0700
committerBryan Wu <cooloney@gmail.com>2015-03-30 11:55:57 -0700
commita96aa64cb5723d941de879a9cd1fea025d6acb1b (patch)
treeb4a69eca7bb9991a1060ed92bd4a5845ca57c9ac /fs/pnode.h
parent5ee047fb7ddd5ce65b804b0888fa32dd8536cda6 (diff)
leds/led-class: Handle LEDs with the same name
The current code expected that every LED had an unique name. This is a legit expectation when the device tree can no be modified or extended. But with device tree overlays this requirement can be easily broken. This patch finds out if the name is already in use and adds the suffix _1, _2... if not. Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> Reported-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'fs/pnode.h')
0 files changed, 0 insertions, 0 deletions