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
Kirill Smelkov
linux
Commits
52b7ad3a
Commit
52b7ad3a
authored
Sep 18, 2011
by
Samuel Ortiz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
leds: Finish mc13783 conversion to the mc13xxx API
Signed-off-by:
Samuel Ortiz
<
sameo@linux.intel.com
>
parent
7583a213
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/leds/leds-mc13783.c
drivers/leds/leds-mc13783.c
+4
-4
No files found.
drivers/leds/leds-mc13783.c
View file @
52b7ad3a
...
...
@@ -183,7 +183,7 @@ static int __devinit mc13783_led_setup(struct mc13783_led *led, int max_current)
static
int
__devinit
mc13783_leds_prepare
(
struct
platform_device
*
pdev
)
{
struct
mc13
783
_leds_platform_data
*
pdata
=
dev_get_platdata
(
&
pdev
->
dev
);
struct
mc13
xxx
_leds_platform_data
*
pdata
=
dev_get_platdata
(
&
pdev
->
dev
);
struct
mc13xxx
*
dev
=
dev_get_drvdata
(
pdev
->
dev
.
parent
);
int
ret
=
0
;
int
reg
=
0
;
...
...
@@ -264,8 +264,8 @@ static int __devinit mc13783_leds_prepare(struct platform_device *pdev)
static
int
__devinit
mc13783_led_probe
(
struct
platform_device
*
pdev
)
{
struct
mc13
783
_leds_platform_data
*
pdata
=
dev_get_platdata
(
&
pdev
->
dev
);
struct
mc13
783
_led_platform_data
*
led_cur
;
struct
mc13
xxx
_leds_platform_data
*
pdata
=
dev_get_platdata
(
&
pdev
->
dev
);
struct
mc13
xxx
_led_platform_data
*
led_cur
;
struct
mc13783_led
*
led
,
*
led_dat
;
int
ret
,
i
;
int
init_led
=
0
;
...
...
@@ -351,7 +351,7 @@ static int __devinit mc13783_led_probe(struct platform_device *pdev)
static
int
__devexit
mc13783_led_remove
(
struct
platform_device
*
pdev
)
{
struct
mc13
783
_leds_platform_data
*
pdata
=
dev_get_platdata
(
&
pdev
->
dev
);
struct
mc13
xxx
_leds_platform_data
*
pdata
=
dev_get_platdata
(
&
pdev
->
dev
);
struct
mc13783_led
*
led
=
platform_get_drvdata
(
pdev
);
struct
mc13xxx
*
dev
=
dev_get_drvdata
(
pdev
->
dev
.
parent
);
int
i
;
...
...
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