diff options
| author | Len Brown <len.brown@intel.com> | 2012-06-04 00:35:19 -0400 |
|---|---|---|
| committer | Len Brown <len.brown@intel.com> | 2012-06-04 00:35:19 -0400 |
| commit | 7e1bd6e38b1f30860ce25a014c6d6adfb0079f4a (patch) | |
| tree | 65c5898ba93007d4399150c7a127a670bcfbc30d /include/linux/mtd/ubi.h | |
| parent | 301f33fbcf4ced53b3de114846ecece5d6aafeeb (diff) | |
| parent | f8f5701bdaf9134b1f90e5044a82c66324d2073f (diff) | |
Merge branch 'upstream' into bugfix-video
Update bugfix-video branch to 2.5-rc1
so I don't have to again resolve the
conflict in these patches vs. upstream.
Conflicts:
drivers/gpu/drm/gma500/psb_drv.c
text conflict: add comment vs delete neighboring line
keep just this:
/* igd_opregion_init(&dev_priv->opregion_dev); */
/* acpi_video_register(); */
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/linux/mtd/ubi.h')
| -rw-r--r-- | include/linux/mtd/ubi.h | 31 |
1 files changed, 7 insertions, 24 deletions
diff --git a/include/linux/mtd/ubi.h b/include/linux/mtd/ubi.h index db4836bed514..c3918a0684fe 100644 --- a/include/linux/mtd/ubi.h +++ b/include/linux/mtd/ubi.h | |||
| @@ -25,6 +25,9 @@ | |||
| 25 | #include <linux/types.h> | 25 | #include <linux/types.h> |
| 26 | #include <mtd/ubi-user.h> | 26 | #include <mtd/ubi-user.h> |
| 27 | 27 | ||
| 28 | /* All voumes/LEBs */ | ||
| 29 | #define UBI_ALL -1 | ||
| 30 | |||
| 28 | /* | 31 | /* |
| 29 | * enum ubi_open_mode - UBI volume open mode constants. | 32 | * enum ubi_open_mode - UBI volume open mode constants. |
| 30 | * | 33 | * |
| @@ -208,14 +211,15 @@ void ubi_close_volume(struct ubi_volume_desc *desc); | |||
| 208 | int ubi_leb_read(struct ubi_volume_desc *desc, int lnum, char *buf, int offset, | 211 | int ubi_leb_read(struct ubi_volume_desc *desc, int lnum, char *buf, int offset, |
| 209 | int len, int check); | 212 | int len, int check); |
| 210 | int ubi_leb_write(struct ubi_volume_desc *desc, int lnum, const void *buf, | 213 | int ubi_leb_write(struct ubi_volume_desc *desc, int lnum, const void *buf, |
| 211 | int offset, int len, int dtype); | 214 | int offset, int len); |
| 212 | int ubi_leb_change(struct ubi_volume_desc *desc, int lnum, const void *buf, | 215 | int ubi_leb_change(struct ubi_volume_desc *desc, int lnum, const void *buf, |
| 213 | int len, int dtype); | 216 | int len); |
| 214 | int ubi_leb_erase(struct ubi_volume_desc *desc, int lnum); | 217 | int ubi_leb_erase(struct ubi_volume_desc *desc, int lnum); |
| 215 | int ubi_leb_unmap(struct ubi_volume_desc *desc, int lnum); | 218 | int ubi_leb_unmap(struct ubi_volume_desc *desc, int lnum); |
| 216 | int ubi_leb_map(struct ubi_volume_desc *desc, int lnum, int dtype); | 219 | int ubi_leb_map(struct ubi_volume_desc *desc, int lnum); |
| 217 | int ubi_is_mapped(struct ubi_volume_desc *desc, int lnum); | 220 | int ubi_is_mapped(struct ubi_volume_desc *desc, int lnum); |
| 218 | int ubi_sync(int ubi_num); | 221 | int ubi_sync(int ubi_num); |
| 222 | int ubi_flush(int ubi_num, int vol_id, int lnum); | ||
| 219 | 223 | ||
| 220 | /* | 224 | /* |
| 221 | * This function is the same as the 'ubi_leb_read()' function, but it does not | 225 | * This function is the same as the 'ubi_leb_read()' function, but it does not |
| @@ -226,25 +230,4 @@ static inline int ubi_read(struct ubi_volume_desc *desc, int lnum, char *buf, | |||
| 226 | { | 230 | { |
| 227 | return ubi_leb_read(desc, lnum, buf, offset, len, 0); | 231 | return ubi_leb_read(desc, lnum, buf, offset, len, 0); |
| 228 | } | 232 | } |
| 229 | |||
| 230 | /* | ||
| 231 | * This function is the same as the 'ubi_leb_write()' functions, but it does | ||
| 232 | * not have the data type argument. | ||
| 233 | */ | ||
| 234 | static inline int ubi_write(struct ubi_volume_desc *desc, int lnum, | ||
| 235 | const void *buf, int offset, int len) | ||
| 236 | { | ||
| 237 | return ubi_leb_write(desc, lnum, buf, offset, len, UBI_UNKNOWN); | ||
| 238 | } | ||
| 239 | |||
| 240 | /* | ||
| 241 | * This function is the same as the 'ubi_leb_change()' functions, but it does | ||
| 242 | * not have the data type argument. | ||
| 243 | */ | ||
| 244 | static inline int ubi_change(struct ubi_volume_desc *desc, int lnum, | ||
| 245 | const void *buf, int len) | ||
| 246 | { | ||
| 247 | return ubi_leb_change(desc, lnum, buf, len, UBI_UNKNOWN); | ||
| 248 | } | ||
| 249 | |||
| 250 | #endif /* !__LINUX_UBI_H__ */ | 233 | #endif /* !__LINUX_UBI_H__ */ |
