Skip to content
Snippets Groups Projects
Commit 3ba47475 authored by Nick Stoughton's avatar Nick Stoughton Committed by 谢秀奇
Browse files

leds: leds-lp5562 allow firmware files up to the maximum length


[ Upstream commit ed2abfeb ]

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: ff45262a ("leds: add new LP5562 LED driver")
Signed-off-by: default avatarNick Stoughton <nstoughton@logitech.com>
Acked-by: default avatarPavel Machek <pavel@ucw.cz>
Signed-off-by: default avatarJacek Anaszewski <jacek.anaszewski@gmail.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent d58b32b1
No related branches found
No related tags found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment