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
85c5204a
Commit
85c5204a
authored
Sep 07, 2009
by
Richard Purdie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
leds: Fix leds-pca9532 whitespace issues
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com
parent
74cbe202
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
drivers/leds/leds-pca9532.c
drivers/leds/leds-pca9532.c
+6
-6
No files found.
drivers/leds/leds-pca9532.c
View file @
85c5204a
...
...
@@ -34,7 +34,7 @@ struct pca9532_data {
struct
i2c_client
*
client
;
struct
pca9532_led
leds
[
16
];
struct
mutex
update_lock
;
struct
input_dev
*
idev
;
struct
input_dev
*
idev
;
struct
work_struct
work
;
u8
pwm
[
2
];
u8
psc
[
2
];
...
...
@@ -53,9 +53,9 @@ MODULE_DEVICE_TABLE(i2c, pca9532_id);
static
struct
i2c_driver
pca9532_driver
=
{
.
driver
=
{
.
name
=
"pca9532"
,
.
name
=
"pca9532"
,
},
.
probe
=
pca9532_probe
,
.
probe
=
pca9532_probe
,
.
remove
=
pca9532_remove
,
.
id_table
=
pca9532_id
,
};
...
...
@@ -149,7 +149,7 @@ static int pca9532_set_blink(struct led_classdev *led_cdev,
if
(
*
delay_on
==
0
&&
*
delay_off
==
0
)
{
/* led subsystem ask us for a blink rate */
*
delay_on
=
1000
;
*
delay_on
=
1000
;
*
delay_off
=
1000
;
}
if
(
*
delay_on
!=
*
delay_off
||
*
delay_on
>
1690
||
*
delay_on
<
6
)
...
...
@@ -227,7 +227,7 @@ static int pca9532_configure(struct i2c_client *client,
break
;
case
PCA9532_TYPE_LED
:
led
->
state
=
pled
->
state
;
led
->
name
=
pled
->
name
;
led
->
name
=
pled
->
name
;
led
->
ldev
.
name
=
led
->
name
;
led
->
ldev
.
brightness
=
LED_OFF
;
led
->
ldev
.
brightness_set
=
pca9532_set_brightness
;
...
...
@@ -254,7 +254,7 @@ static int pca9532_configure(struct i2c_client *client,
data
->
idev
->
name
=
pled
->
name
;
data
->
idev
->
phys
=
"i2c/pca9532"
;
data
->
idev
->
id
.
bustype
=
BUS_HOST
;
data
->
idev
->
id
.
vendor
=
0x001f
;
data
->
idev
->
id
.
vendor
=
0x001f
;
data
->
idev
->
id
.
product
=
0x0001
;
data
->
idev
->
id
.
version
=
0x0100
;
data
->
idev
->
evbit
[
0
]
=
BIT_MASK
(
EV_SND
);
...
...
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