[PATCH 6/6] nvmem: core: improve range check for nvmem_cell_write()