Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
cf6eb52f
Commit
cf6eb52f
authored
Aug 07, 2019
by
Pavel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
leds: lm3532: use extended registration so that LED can be used for backlight
Signed-off-by:
Pavel Machek
<
pavel@ucw.cz
>
parent
867b6824
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
drivers/leds/leds-lm3532.c
drivers/leds/leds-lm3532.c
+7
-1
No files found.
drivers/leds/leds-lm3532.c
View file @
cf6eb52f
...
...
@@ -577,6 +577,12 @@ static int lm3532_parse_node(struct lm3532_data *priv)
priv
->
runtime_ramp_down
=
lm3532_get_ramp_index
(
ramp_time
);
device_for_each_child_node
(
priv
->
dev
,
child
)
{
struct
led_init_data
idata
=
{
.
fwnode
=
child
,
.
default_label
=
":"
,
.
devicename
=
priv
->
client
->
name
,
};
led
=
&
priv
->
leds
[
i
];
ret
=
fwnode_property_read_u32
(
child
,
"reg"
,
&
control_bank
);
...
...
@@ -651,7 +657,7 @@ static int lm3532_parse_node(struct lm3532_data *priv)
led
->
led_dev
.
name
=
led
->
label
;
led
->
led_dev
.
brightness_set_blocking
=
lm3532_brightness_set
;
ret
=
devm_led_classdev_register
(
priv
->
dev
,
&
led
->
led_dev
);
ret
=
devm_led_classdev_register
_ext
(
priv
->
dev
,
&
led
->
led_dev
,
&
idata
);
if
(
ret
)
{
dev_err
(
&
priv
->
client
->
dev
,
"led register err: %d
\n
"
,
ret
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment