NOR: trim range in flash_driver_protect()