Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
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
Software for White Rabbit PTP Core
Commits
a0f9eb9f
Commit
a0f9eb9f
authored
Jan 06, 2015
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev/sdb-eeprom: small cleanup and code re-format
parent
74341a5a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
sdb-eeprom.c
dev/sdb-eeprom.c
+8
-5
No files found.
dev/sdb-eeprom.c
View file @
a0f9eb9f
...
...
@@ -176,14 +176,17 @@ void eeprom_init(int chosen_i2cif, int chosen_i2c_addr)
/* While looking for the magic number, use sdb-based read function */
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
entry_points
);
i
++
)
{
uint32_t
magic
;
sdb_i2c_read
(
&
wrc_sdb
,
entry_points
[
i
],
(
void
*
)
&
magic
,
sizeof
(
magic
));
if
(
magic
==
SDB_MAGIC
)
{
pp_printf
(
"sdbfs: found at %i in I2C
\n
"
,
entry_points
[
i
]);
if
(
magic
==
SDB_MAGIC
)
break
;
}
if
(
magic
==
SDB_MAGIC
)
{
pp_printf
(
"sdbfs: found at %i in I2C
\n
"
,
entry_points
[
i
]);
wrc_sdb
.
drvdata
=
&
i2c_params
;
wrc_sdb
.
read
=
sdb_i2c_read
;
wrc_sdb
.
write
=
sdb_i2c_write
;
goto
found_exit
;
}
if
(
i
==
ARRAY_SIZE
(
entry_points
))
{
pp_printf
(
"No SDB filesystem in i2c eeprom
\n
"
);
...
...
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