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
7
Merge Requests
7
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
5396efb9
Commit
5396efb9
authored
Jul 10, 2020
by
Peter Jansweijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev/storage: fix incorrect pointer passed to i2c_eeprom_[read|write|erase]
parent
17b5e854
Pipeline
#305
failed with stages
in 8 seconds
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
storage.c
dev/storage.c
+3
-3
No files found.
dev/storage.c
View file @
5396efb9
...
...
@@ -168,19 +168,19 @@ const struct storage_rwops spi_w1_rwops = {
static
int
sdb_i2c_eeprom_read
(
struct
storage_device
*
dev
,
int
offset
,
void
*
buf
,
int
count
)
{
struct
storage_i2c_eeprom_priv
*
priv
=
(
struct
storage_i2c_eeprom_priv
*
)
dev
->
priv
;
return
i2c_eeprom_read
(
priv
->
dev
,
offset
,
buf
,
count
);
return
i2c_eeprom_read
(
priv
,
offset
,
buf
,
count
);
}
static
int
sdb_i2c_eeprom_write
(
struct
storage_device
*
dev
,
int
offset
,
void
*
buf
,
int
count
)
{
struct
storage_i2c_eeprom_priv
*
priv
=
(
struct
storage_i2c_eeprom_priv
*
)
dev
->
priv
;
return
i2c_eeprom_read
(
priv
->
dev
,
offset
,
buf
,
count
);
return
i2c_eeprom_read
(
priv
,
offset
,
buf
,
count
);
}
static
int
sdb_i2c_eeprom_erase
(
struct
storage_device
*
dev
,
int
offset
,
int
count
)
{
struct
storage_i2c_eeprom_priv
*
priv
=
(
struct
storage_i2c_eeprom_priv
*
)
dev
->
priv
;
return
i2c_eeprom_erase
(
priv
->
dev
,
offset
,
count
);
return
i2c_eeprom_erase
(
priv
,
offset
,
count
);
}
/* Functions for I2C EEPROM access */
...
...
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