aboutsummaryrefslogtreecommitdiff
path: root/drivers/leds/leds-mlxcpld.c
diff options
context:
space:
mode:
authorGravatar Jacek Anaszewski <jacek.anaszewski@gmail.com> 2017-08-17 22:16:48 +0200
committerGravatar Jacek Anaszewski <jacek.anaszewski@gmail.com> 2017-08-29 21:10:37 +0200
commit390c97dc6e346b65df61c18fade67577896382fd (patch)
tree14da6e137a3bb47c754eb454eb24579eef4841d1 /drivers/leds/leds-mlxcpld.c
parentleds: lm3533: constify attribute_group structure (diff)
downloadlinux-390c97dc6e346b65df61c18fade67577896382fd.tar.gz
linux-390c97dc6e346b65df61c18fade67577896382fd.tar.bz2
linux-390c97dc6e346b65df61c18fade67577896382fd.zip
leds: pca955x: Prevent crippled LED device name
In case platform data provided empty LED name string the resulting LED class device name would be crippled. Use corresponding LED chip bit in place of "function" segment of LED class device name then to make the LEDs at least distinguishable. Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com> Reported-by: Colin King <colin.king@canonical.com> Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Suggested-by: Nate Case <ncase@xes-inc.com>
Diffstat (limited to 'drivers/leds/leds-mlxcpld.c')
0 files changed, 0 insertions, 0 deletions