Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC Bus
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC Bus
Commits
f9e4b732
Commit
f9e4b732
authored
May 30, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: small whitespace fixes (checkpatch)
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
f5c3b0ea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
fmc-core.c
kernel/fmc-core.c
+4
-4
fmc-fakedev.c
kernel/fmc-fakedev.c
+1
-1
No files found.
kernel/fmc-core.c
View file @
f9e4b732
...
...
@@ -79,8 +79,8 @@ static void fmc_release(struct device *dev)
*/
static
ssize_t
fmc_read_eeprom
(
struct
file
*
file
,
struct
kobject
*
kobj
,
struct
bin_attribute
*
bin_attr
,
char
*
buf
,
loff_t
off
,
size_t
count
)
struct
bin_attribute
*
bin_attr
,
char
*
buf
,
loff_t
off
,
size_t
count
)
{
struct
device
*
dev
;
struct
fmc_device
*
fmc
;
...
...
@@ -95,8 +95,8 @@ static ssize_t fmc_read_eeprom(struct file *file, struct kobject *kobj,
return
0
;
/* EOF */
if
(
off
+
count
>
eelen
)
count
=
eelen
-
off
;
memcpy
(
buf
,
fmc
->
eeprom
+
off
,
count
);
return
count
;
memcpy
(
buf
,
fmc
->
eeprom
+
off
,
count
);
return
count
;
}
static
struct
bin_attribute
fmc_eeprom_attr
=
{
...
...
kernel/fmc-fakedev.c
View file @
f9e4b732
...
...
@@ -309,7 +309,7 @@ int ff_init(void)
return
PTR_ERR
(
ff
);
/* If the user passed "eeprom=" as a parameter, fetch them */
for
(
i
=
0
;
i
<
ff_nr_eeprom
;
i
++
)
{
for
(
i
=
0
;
i
<
ff_nr_eeprom
;
i
++
)
{
if
(
!
strlen
(
ff_eeprom
[
i
]))
continue
;
ret
=
request_firmware
(
&
fw
,
ff_eeprom
[
i
],
&
ff
->
dev
);
...
...
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