summaryrefslogtreecommitdiffstats
path: root/libflash/libflash.c
diff options
context:
space:
mode:
Diffstat (limited to 'libflash/libflash.c')
-rw-r--r--libflash/libflash.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libflash/libflash.c b/libflash/libflash.c
index 4b9948bf..c43f2121 100644
--- a/libflash/libflash.c
+++ b/libflash/libflash.c
@@ -267,9 +267,8 @@ static int flash_erase(struct blocklevel_device *bl, uint32_t dst, uint32_t size
return 0;
}
-int flash_erase_chip(struct blocklevel_device *bl)
+int flash_erase_chip(struct flash_chip *c)
{
- struct flash_chip *c = container_of(bl, struct flash_chip, bl);
struct spi_flash_ctrl *ct = c->ctrl;
int rc;
@@ -692,9 +691,8 @@ static int flash_set_4b(struct flash_chip *c, bool enable)
return ct->cmd_wr(ct, enable ? CMD_EN4B : CMD_EX4B, false, 0, NULL, 0);
}
-int flash_force_4b_mode(struct blocklevel_device *bl, bool enable_4b)
+int flash_force_4b_mode(struct flash_chip *c, bool enable_4b)
{
- struct flash_chip *c = container_of(bl, struct flash_chip, bl);
struct spi_flash_ctrl *ct = c->ctrl;
int rc;
OpenPOWER on IntegriCloud