diff options
author | Antony Pavlov <antonynpavlov@gmail.com> | 2021-10-04 12:15:50 +0300 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-10-05 13:51:12 +0200 |
commit | 5a5e67910d2e9e2584a2103c34c86eddaa43868c (patch) | |
tree | 8ac86f7c7a5a02f0e95f35a447bd99ebac56e062 | |
parent | 2b9ba2f5c60565798040cce4c3f4140a512fac0b (diff) | |
download | barebox-5a5e67910d2e9e2584a2103c34c86eddaa43868c.tar.gz barebox-5a5e67910d2e9e2584a2103c34c86eddaa43868c.tar.xz |
mtd: core: fix whitespaces
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Link: https://lore.barebox.org/20211004091550.42289-1-antonynpavlov@gmail.com
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | drivers/mtd/core.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/mtd/core.c b/drivers/mtd/core.c index 37fccda6be..c6c1e1e7cf 100644 --- a/drivers/mtd/core.c +++ b/drivers/mtd/core.c @@ -377,7 +377,7 @@ int mtd_block_markgood(struct mtd_info *mtd, loff_t ofs) } int mtd_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, - u_char *buf) + u_char *buf) { struct mtd_oob_ops ops = { .len = len, @@ -420,23 +420,23 @@ int mtd_write_oob(struct mtd_info *mtd, loff_t to, } int mtd_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, - const u_char *buf) + const u_char *buf) { - struct mtd_oob_ops ops = { - .len = len, - .datbuf = (u8 *)buf, - }; - int ret; + struct mtd_oob_ops ops = { + .len = len, + .datbuf = (u8 *)buf, + }; + int ret; if (to < 0 || to >= mtd->size || len > mtd->size - to) return -EINVAL; if (!len) return 0; - ret = mtd_write_oob(mtd, to, &ops); - *retlen = ops.retlen; + ret = mtd_write_oob(mtd, to, &ops); + *retlen = ops.retlen; - return ret; + return ret; } int mtd_erase(struct mtd_info *mtd, struct erase_info *instr) @@ -757,7 +757,7 @@ err: return ret; } -int del_mtd_device (struct mtd_info *mtd) +int del_mtd_device(struct mtd_info *mtd) { struct mtddev_hook *hook; |