diff options
| author | Weijie Gao <[email protected]> | 2026-05-20 16:27:30 +0800 |
|---|---|---|
| committer | Heiko Schocher <[email protected]> | 2026-07-08 11:29:55 +0200 |
| commit | b63af5e2c20cc9d2d510c5ff38d48114582d410d (patch) | |
| tree | 3bf2e0beef8283f05bdf374ac24af95933f1bc42 /include | |
| parent | 065b0ba3b14fd6795626b89d5e8e3daede02475a (diff) | |
cmd: ubi: use void * for buf parameter in ubi_volume_read
Use void * to avoid explicit type casting as what ubi_volume_write has done
already.
Reviewed-by: Simon Glass <[email protected]>
Signed-off-by: Weijie Gao <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/ubi_uboot.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ubi_uboot.h b/include/ubi_uboot.h index a949d1b80dd..dd22ec7537a 100644 --- a/include/ubi_uboot.h +++ b/include/ubi_uboot.h @@ -50,7 +50,7 @@ void ubi_exit(void); int ubi_part(const char *part_name, const char *vid_header_offset); int ubi_volume_write(const char *volume, const void *buf, loff_t offset, size_t size); -int ubi_volume_read(const char *volume, char *buf, loff_t offset, size_t size); +int ubi_volume_read(const char *volume, void *buf, loff_t offset, size_t size); extern struct ubi_device *ubi_devices[]; int cmd_ubifs_mount(char *vol_name); |
