kernel: mtdsplit: wrgg: Support big and little endian