kernel/3.10: add more helpers to the mtdsplit code