UBI: rename IO error code
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Thu, 2 Sep 2010 22:30:16 +0000 (01:30 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 19 Oct 2010 14:19:56 +0000 (17:19 +0300)
commit756e1df1d2b8b572a92dd1b82d2a432d5b280b1c
treee1109e8a31f72bb3c50b2001f28983c1bdfba1a9
parentc174a08c72ae77a05be59d0d810dc13239b81e8e
UBI: rename IO error code

Rename UBI_IO_BAD_HDR_READ into UBI_IO_BAD_HDR_EBADMSG which is presumably more
self-documenting and readable. Indeed, the '_READ' suffix does not tell much and
even confuses, while '_EBADMSG' tells about uncorrectable ECC error, because we
use -EBADMSG all over the place to represent ECC errors.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/eba.c
drivers/mtd/ubi/io.c
drivers/mtd/ubi/scan.c
drivers/mtd/ubi/scan.h
drivers/mtd/ubi/ubi.h