mtd: spi-nor: add a helper to find the spi_device_id