aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtd
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mtd')
-rw-r--r--include/linux/mtd/mtd.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h
index 48a9df21ab11..4970c2e96fbf 100644
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -199,20 +199,6 @@ int default_mtd_writev(struct mtd_info *mtd, const struct kvec *vecs,
199int default_mtd_readv(struct mtd_info *mtd, struct kvec *vecs, 199int default_mtd_readv(struct mtd_info *mtd, struct kvec *vecs,
200 unsigned long count, loff_t from, size_t *retlen); 200 unsigned long count, loff_t from, size_t *retlen);
201 201
202#define MTD_ERASE(mtd, args...) (*(mtd->erase))(mtd, args)
203#define MTD_POINT(mtd, a,b,c,d) (*(mtd->point))(mtd, a,b,c, (u_char **)(d))
204#define MTD_UNPOINT(mtd, arg) (*(mtd->unpoint))(mtd, (u_char *)arg)
205#define MTD_READ(mtd, args...) (*(mtd->read))(mtd, args)
206#define MTD_WRITE(mtd, args...) (*(mtd->write))(mtd, args)
207#define MTD_READV(mtd, args...) (*(mtd->readv))(mtd, args)
208#define MTD_WRITEV(mtd, args...) (*(mtd->writev))(mtd, args)
209#define MTD_READECC(mtd, args...) (*(mtd->read_ecc))(mtd, args)
210#define MTD_WRITEECC(mtd, args...) (*(mtd->write_ecc))(mtd, args)
211#define MTD_READOOB(mtd, args...) (*(mtd->read_oob))(mtd, args)
212#define MTD_WRITEOOB(mtd, args...) (*(mtd->write_oob))(mtd, args)
213#define MTD_SYNC(mtd) do { if (mtd->sync) (*(mtd->sync))(mtd); } while (0)
214
215
216#ifdef CONFIG_MTD_PARTITIONS 202#ifdef CONFIG_MTD_PARTITIONS
217void mtd_erase_callback(struct erase_info *instr); 203void mtd_erase_callback(struct erase_info *instr);
218#else 204#else
@@ -233,7 +219,7 @@ static inline void mtd_erase_callback(struct erase_info *instr)
233 219
234#ifdef CONFIG_MTD_DEBUG 220#ifdef CONFIG_MTD_DEBUG
235#define DEBUG(n, args...) \ 221#define DEBUG(n, args...) \
236 do { \ 222 do { \
237 if (n <= CONFIG_MTD_DEBUG_VERBOSE) \ 223 if (n <= CONFIG_MTD_DEBUG_VERBOSE) \
238 printk(KERN_INFO args); \ 224 printk(KERN_INFO args); \
239 } while(0) 225 } while(0)