spi: Use list_last_entry at appropriate places