Searched hist:dac2639f9833e858139d7e07f6ee45fb2191a9f2 (Results 1 – 2 of 2) sorted by relevance
/linux/drivers/mtd/ |
H A D | mtdchar.c | diff dac2639f9833e858139d7e07f6ee45fb2191a9f2 Wed Dec 28 16:50:34 CET 2011 Artem Bityutskiy <artem.bityutskiy@linux.intel.com> mtd: do not use mtd->read_oob directly
Instead of checking whether 'mtd->read_oob' is defined, just call 'mtd_read_oob()' and handle the '-EOPNOTSUPP' error which will be returned if the function is undefined.
Additionally, make 'mtd_write_oob()' return '-EOPNOTSUPP' if the function is undefined.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
|
/linux/include/linux/mtd/ |
H A D | mtd.h | diff dac2639f9833e858139d7e07f6ee45fb2191a9f2 Wed Dec 28 16:50:34 CET 2011 Artem Bityutskiy <artem.bityutskiy@linux.intel.com> mtd: do not use mtd->read_oob directly
Instead of checking whether 'mtd->read_oob' is defined, just call 'mtd_read_oob()' and handle the '-EOPNOTSUPP' error which will be returned if the function is undefined.
Additionally, make 'mtd_write_oob()' return '-EOPNOTSUPP' if the function is undefined.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
|