leds: max8997: Don't error if there is no pdata
authorPaul Cercueil <paul@crapouillou.net>
Thu, 20 Oct 2022 11:44:42 +0000 (12:44 +0100)
committerPavel Machek <pavel@ucw.cz>
Sat, 22 Oct 2022 09:55:03 +0000 (11:55 +0200)
commit57d91e039070faa938622d28093ba1d031e29b3b
tree852c82085896a8da3161ffa6907686e6eb412f32
parentfb0f4051ee8e0ae89697e417f1a547e715acc824
leds: max8997: Don't error if there is no pdata

The driver works just fine if no platform data is supplied.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-max8997.c