diff options
author | Marek BehĂșn <kabel@kernel.org> | 2020-09-26 22:11:30 +0200 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 2020-09-30 19:22:58 +0200 |
commit | 940cca1ab5d6c3bc1f8db0c804cf7c5e0caf1853 (patch) | |
tree | c25fb05943875a15dfbfbe722040deccc837962d /drivers/bcma | |
parent | 108f4664e3449828114780a05393eb8d2be7fdd0 (diff) | |
download | linux-stable-940cca1ab5d6c3bc1f8db0c804cf7c5e0caf1853.tar.gz linux-stable-940cca1ab5d6c3bc1f8db0c804cf7c5e0caf1853.tar.bz2 linux-stable-940cca1ab5d6c3bc1f8db0c804cf7c5e0caf1853.zip |
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: Marek BehĂșn <kabel@kernel.org>
Tested-by: Simon Guinot <simon.guinot@sequanux.org>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
Diffstat (limited to 'drivers/bcma')
0 files changed, 0 insertions, 0 deletions