Skip to content
Commit 940cca1a authored by Marek Behún's avatar Marek Behún Committed by Pavel Machek
Browse files

leds: ns2: convert to fwnode API



Convert from OF api to fwnode API, so that it is possible to bind this
driver without device-tree.

The fwnode API does not expose a function to read a specific element of
an array. We therefore change the types of the ns2_led_modval structure
so that we can read the whole modval array with one fwnode call.

Signed-off-by: default avatarMarek Behún <kabel@kernel.org>
Tested-by: default avatarSimon Guinot <simon.guinot@sequanux.org>
Signed-off-by: default avatarPavel Machek <pavel@ucw.cz>
parent 108f4664
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment