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
31
Issues
31
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
bdd1726f
Commit
bdd1726f
authored
Jul 10, 2020
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev/storage: fix incorrect pointer passed to i2c_eeprom_[read|write|erase]
parent
8b6159d9
Pipeline
#300
failed with stages
in 11 seconds
Changes
1
Pipelines
1
Hide 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 @
bdd1726f
...
...
@@ -190,19 +190,19 @@ static int sdb_i2c_eeprom_read(struct storage_device *dev, int offset, void *buf
struct
i2c_eeprom_device
*
priv
=
(
struct
i2c_eeprom_device
*
)
dev
->
priv
;
//struct i2c_eeprom_device *priv = dev->priv;
//spec7debug5(priv->bus);
return
i2c_eeprom_read
(
priv
->
bus
,
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
i2c_eeprom_device
*
priv
=
(
struct
i2c_eeprom_device
*
)
dev
->
priv
;
return
i2c_eeprom_read
(
priv
->
bus
,
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
i2c_eeprom_device
*
priv
=
(
struct
i2c_eeprom_device
*
)
dev
->
priv
;
return
i2c_eeprom_erase
(
priv
->
bus
,
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