leds: regulator: Add dev helper variable
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 4 Apr 2022 20:35:21 +0000 (22:35 +0200)
committerPavel Machek <pavel@ucw.cz>
Thu, 5 May 2022 08:04:52 +0000 (10:04 +0200)
commit4c350c658f946dae81dbbaff25da0a03e9bb0c4b
tree59c458b9eb904315123b3789acec5e8f673215f3
parent5a71917f3b43b9fd6d6ff7b0622a85153bf184cb
leds: regulator: Add dev helper variable

Instead of repeating the hard to read &pdev->dev just create a
local struct device *dev in probe().

Cc: Antonio Ospite <ao2@ao2.it>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-regulator.c