summaryrefslogtreecommitdiff
path: root/include/ubi_uboot.h
diff options
context:
space:
mode:
authorAlexey Romanov <avromanov@salutedevices.com>2024-07-18 08:45:24 +0300
committerMichael Trimarchi <michael@amarulasolutions.com>2024-08-08 09:27:58 +0200
commit25ee9c2005958e6f06609eef5c9d9915c77ece97 (patch)
treea498469e3fd71c589f907d42227eb8ae3e2e7237 /include/ubi_uboot.h
parentcead69c528d4f107288717aeca6af52d0d9d47e9 (diff)
ubi: allow to write to volume with offset
Introduce ubi_volume_offset_write() helper, which allow to write to ubi volume with specified offset. Signed-off-by: Alexey Romanov <avromanov@salutedevices.com> Reviewed-by: Heiko Schocher <hs@denx.de> Acked-by: Heiko Schocher <hs@denx.de> Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Diffstat (limited to 'include/ubi_uboot.h')
-rw-r--r--include/ubi_uboot.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ubi_uboot.h b/include/ubi_uboot.h
index a4be0feabbd..d36bb923482 100644
--- a/include/ubi_uboot.h
+++ b/include/ubi_uboot.h
@@ -48,7 +48,7 @@ extern int ubi_mtd_param_parse(const char *val, struct kernel_param *kp);
extern int ubi_init(void);
extern void ubi_exit(void);
extern int ubi_part(char *part_name, const char *vid_header_offset);
-extern int ubi_volume_write(char *volume, void *buf, size_t size);
+extern int ubi_volume_write(char *volume, void *buf, loff_t offset, size_t size);
extern int ubi_volume_read(char *volume, char *buf, loff_t offset, size_t size);
extern struct ubi_device *ubi_devices[];