]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
leds: ns2: move parsing of one LED into separate function
authorMarek Behún <marek.behun@nic.cz>
Thu, 17 Sep 2020 22:33:27 +0000 (00:33 +0200)
committerPavel Machek <pavel@ucw.cz>
Sat, 26 Sep 2020 19:56:41 +0000 (21:56 +0200)
commitf72deb717d5b80b3b90ebcb4e4b73b041e2eb465
tree98344e6eb64c6933628422efc9b72b47ae1d1640
parent01d0b14d0e52d74ff7e0fc9b39c13be04acf27dd
leds: ns2: move parsing of one LED into separate function

Move parsing of DT properties of one LED into separate function. This
saves indentation level and is nicer to read.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Cc: Simon Guinot <simon.guinot@sequanux.org>
Cc: Simon Guinot <sguinot@lacie.com>
Cc: Vincent Donnefort <vdonnefort@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-ns2.c