leds: leds-lp5562 allow firmware files up to the maximum length
authorNick Stoughton <nstoughton@logitech.com>
Wed, 17 Jul 2019 21:56:06 +0000 (14:56 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Oct 2019 10:47:45 +0000 (12:47 +0200)
commita267c9f9b8f6c9959697ce988ef00e99ce039477
treecee4deec2f45ffb8def42e616777b903cf4130b9
parent9b5b7f81dfe0213abcd10fa0d312b1efd1fea538
leds: leds-lp5562 allow firmware files up to the maximum length

[ Upstream commit ed2abfebb041473092b41527903f93390d38afa7 ]

Firmware files are in ASCII, using 2 hex characters per byte. The
maximum length of a firmware string is therefore

16 (commands) * 2 (bytes per command) * 2 (characters per byte) = 64

Fixes: ff45262a85db ("leds: add new LP5562 LED driver")
Signed-off-by: Nick Stoughton <nstoughton@logitech.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/leds/leds-lp5562.c