diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-01-24 10:04:01 -0500 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-01-25 09:41:25 -0500 |
commit | 1b68d0eea5daddc762c54bf02154f4ad607d9ce8 (patch) | |
tree | e918b5d434da7213a7af8cff2b6bd692035f72cf /drivers/mtd/ubi/ubi.h | |
parent | 0411e7353192d7deebd4f50b9ee41974ec3a634c (diff) |
UBI: simplify internal interfaces
Instead of passing vol_id to all functions and then find
struct ubi_volume, pass struct ubi_volume pointer.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/ubi/ubi.h')
-rw-r--r-- | drivers/mtd/ubi/ubi.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h index a8cdbd0364fb..3a88cf1eaaa8 100644 --- a/drivers/mtd/ubi/ubi.h +++ b/drivers/mtd/ubi/ubi.h | |||
@@ -423,8 +423,9 @@ int ubi_add_volume(struct ubi_device *ubi, struct ubi_volume *vol); | |||
423 | void ubi_free_volume(struct ubi_device *ubi, struct ubi_volume *vol); | 423 | void ubi_free_volume(struct ubi_device *ubi, struct ubi_volume *vol); |
424 | 424 | ||
425 | /* upd.c */ | 425 | /* upd.c */ |
426 | int ubi_start_update(struct ubi_device *ubi, int vol_id, long long bytes); | 426 | int ubi_start_update(struct ubi_device *ubi, struct ubi_volume *vol, |
427 | int ubi_more_update_data(struct ubi_device *ubi, int vol_id, | 427 | long long bytes); |
428 | int ubi_more_update_data(struct ubi_device *ubi, struct ubi_volume *vol, | ||
428 | const void __user *buf, int count); | 429 | const void __user *buf, int count); |
429 | 430 | ||
430 | /* misc.c */ | 431 | /* misc.c */ |