leds: trigger: pattern: Switch to using the new API kobj_to_dev()
authorTian Tao <tiantao6@hisilicon.com>
Mon, 22 Mar 2021 02:37:16 +0000 (10:37 +0800)
committerPavel Machek <pavel@ucw.cz>
Sun, 25 Apr 2021 21:38:10 +0000 (23:38 +0200)
commit5fe09e16c689eae88a151c2f8199c73cf6f18d7d
tree11e245491c7326f2939578ef086d80fe7c889a84
parent1cfa807b06afd54488512bacef7cb5023437f178
leds: trigger: pattern: Switch to using the new API kobj_to_dev()

Switch to using the new API kobj_to_dev() to fix the below warnning:
./drivers/leds/trigger/ledtrig-pattern.c:336:60-61: WARNING opportunity
for kobj_to_dev()

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/trigger/ledtrig-pattern.c