UPSTREAM: HID: google: switch to devm when registering keyboard backlight LED

We can use devm to register keyboard backlight LED on hammer devices, this
will allow us to use HID's driver data for something else later.

Tested-by: Stephen Boyd <> # coachz, wormdingler
Signed-off-by: Dmitry Torokhov <>
(cherry picked from commit d950db3f80a801797ec09cf6a410b19621a6e243)

BUG=b:233576142, b:214593871, b:229004203
TEST=USE="kasan" emerge-strongbad chromeos-kernel-5_4
     disconnect keyboard on coachz

Change-Id: Id198d9cd00a3b2619ce5409115059997de81d790
Signed-off-by: Stephen Boyd <>
Reviewed-by: Dmitry Torokhov <>
Reviewed-by: Sean Paul <>
1 file changed