Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274951
b: refs/heads/master
c: 7387ce7
h: refs/heads/master
i:
  274949: fdca76b
  274947: 738aaa0
  274943: a6508ab
v: v3
  • Loading branch information
Brian Norris authored and Artem Bityutskiy committed Sep 21, 2011
1 parent 770576a commit cf5f56c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b61bf5bbf619fc66ca866a27038da0b91cafb92d
refs/heads/master: 7387ce773256f446bdd0280b2449b635441f906e
12 changes: 12 additions & 0 deletions trunk/include/linux/mtd/mtd.h
Original file line number Diff line number Diff line change
Expand Up @@ -348,4 +348,16 @@ void *mtd_kmalloc_up_to(const struct mtd_info *mtd, size_t *size);

void mtd_erase_callback(struct erase_info *instr);

static inline int mtd_is_bitflip(int err) {
return err == -EUCLEAN;
}

static inline int mtd_is_eccerr(int err) {
return err == -EBADMSG;
}

static inline int mtd_is_bitflip_or_eccerr(int err) {
return mtd_is_bitflip(err) || mtd_is_eccerr(err);
}

#endif /* __MTD_MTD_H__ */

0 comments on commit cf5f56c

Please sign in to comment.