leds: tca6507: use fwnode API instead of OF
authorMarek Behún <marek.behun@nic.cz>
Sat, 19 Sep 2020 22:15:37 +0000 (00:15 +0200)
committerPavel Machek <pavel@ucw.cz>
Wed, 30 Sep 2020 16:53:26 +0000 (18:53 +0200)
commit96f524105b9c62904b8452dff2c2531a84e44e2c
treee68227741935175cbfff91044c4a1f606e3223c2
parent38b393fec298569c8ec154c750a107299bc8385d
leds: tca6507: use fwnode API instead of OF

Convert to use fwnode API instead of OF. It is more generic and if
someone wants to use this driver without device-tree yet still, they
will be able to via swnode fwnodes.

Remove the gpio setup function from platdata.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Cc: NeilBrown <neilb@suse.de>
Cc: Linus Walleij <linus.walleij@linaro.org>
Tested-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-tca6507.c