[PATCH] spi: use linked lists rather than an array