aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mtd/mtd.h16
1 files changed, 2 insertions, 14 deletions
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h
index a994129ede55..a58ecf4d1f80 100644
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -394,16 +394,8 @@ static inline int mtd_lock_user_prot_reg(struct mtd_info *mtd, loff_t from,
394 return mtd->lock_user_prot_reg(mtd, from, len); 394 return mtd->lock_user_prot_reg(mtd, from, len);
395} 395}
396 396
397/* 397int mtd_writev(struct mtd_info *mtd, const struct kvec *vecs,
398 * kvec-based read/write method. NB: The 'count' parameter is the number of 398 unsigned long count, loff_t to, size_t *retlen);
399 * _vectors_, each of which contains an (ofs, len) tuple.
400 */
401static inline int mtd_writev(struct mtd_info *mtd, const struct kvec *vecs,
402 unsigned long count, loff_t to, size_t *retlen)
403{
404 *retlen = 0;
405 return mtd->writev(mtd, vecs, count, to, retlen);
406}
407 399
408static inline void mtd_sync(struct mtd_info *mtd) 400static inline void mtd_sync(struct mtd_info *mtd)
409{ 401{
@@ -510,10 +502,6 @@ struct mtd_notifier {
510 502
511extern void register_mtd_user (struct mtd_notifier *new); 503extern void register_mtd_user (struct mtd_notifier *new);
512extern int unregister_mtd_user (struct mtd_notifier *old); 504extern int unregister_mtd_user (struct mtd_notifier *old);
513
514int default_mtd_writev(struct mtd_info *mtd, const struct kvec *vecs,
515 unsigned long count, loff_t to, size_t *retlen);
516
517void *mtd_kmalloc_up_to(const struct mtd_info *mtd, size_t *size); 505void *mtd_kmalloc_up_to(const struct mtd_info *mtd, size_t *size);
518 506
519void mtd_erase_callback(struct erase_info *instr); 507void mtd_erase_callback(struct erase_info *instr);