wip: renamed argument spi -> device