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)
committerJacek Anaszewski <jacek.anaszewski@gmail.com>
Mon, 22 Jul 2019 18:35:01 +0000 (20:35 +0200)
commited2abfebb041473092b41527903f93390d38afa7
tree803ab63814af8fef67995d9f6db33021bc8b905d
parent79937a4beeaeb3e2584db5dfe3a7c9ee3d5f97f6
leds: leds-lp5562 allow firmware files up to the maximum length

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>
drivers/leds/leds-lp5562.c