mtd: define `mtd_is_*()' functions
authorBrian Norris <computersforpeace@gmail.com>
Wed, 21 Sep 2011 01:30:51 +0000 (18:30 -0700)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Wed, 21 Sep 2011 06:19:06 +0000 (09:19 +0300)
commit7387ce773256f446bdd0280b2449b635441f906e
tree571ea27188a58341ae00f32802106c5c345587c3
parentb61bf5bbf619fc66ca866a27038da0b91cafb92d
mtd: define `mtd_is_*()' functions

These functions can be used instead of referencing -EUCLEAN and -EBADMSG
all over the place. They should help make code a little bit more
readable.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
include/linux/mtd/mtd.h