Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC DEL 1ns 4cha
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
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 DEL 1ns 4cha
Commits
2ee77784
Commit
2ee77784
authored
Apr 30, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trivial: kernel/i2c: remove old unused test code
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
b2b9b111
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
17 deletions
+0
-17
i2c.c
kernel/i2c.c
+0
-17
No files found.
kernel/i2c.c
View file @
2ee77784
...
...
@@ -250,23 +250,6 @@ int fd_i2c_init(struct fd_dev *fd)
mi2c_scan
(
fd
);
if
(
0
)
{
/* Temporary - testing: read and write some stuff */
u8
buf
[
8
];
int
i
;
fd_eeprom_read
(
fd
,
fd
->
fmc
->
eeprom_addr
,
I2C_OFFSET
,
buf
,
8
);
printk
(
"read: "
);
for
(
i
=
0
;
i
<
8
;
i
++
)
printk
(
"%02x%c"
,
buf
[
i
],
i
==
7
?
'\n'
:
' '
);
get_random_bytes
(
buf
,
8
);
printk
(
"write: "
);
for
(
i
=
0
;
i
<
8
;
i
++
)
printk
(
"%02x%c"
,
buf
[
i
],
i
==
7
?
'\n'
:
' '
);
fd_eeprom_write
(
fd
,
fd
->
fmc
->
eeprom_addr
,
I2C_OFFSET
,
buf
,
8
);
}
/* Retrieve and validate the calibration */
cal_ee
=
kzalloc
(
sizeof
(
*
cal_ee
),
GFP_KERNEL
);
if
(
!
cal_ee
)
...
...
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