Commit 19a03680 authored by Mark Brown's avatar Mark Brown

Merge remote-tracking branch 'spi/topic/core' into spi-next

parents c9508d4b 98a8f5a0
...@@ -1001,7 +1001,7 @@ static int spi_init_queue(struct spi_master *master) ...@@ -1001,7 +1001,7 @@ static int spi_init_queue(struct spi_master *master)
dev_name(&master->dev)); dev_name(&master->dev));
if (IS_ERR(master->kworker_task)) { if (IS_ERR(master->kworker_task)) {
dev_err(&master->dev, "failed to create message pump task\n"); dev_err(&master->dev, "failed to create message pump task\n");
return -ENOMEM; return PTR_ERR(master->kworker_task);
} }
init_kthread_work(&master->pump_messages, spi_pump_messages); init_kthread_work(&master->pump_messages, spi_pump_messages);
......
...@@ -1049,4 +1049,10 @@ spi_unregister_device(struct spi_device *spi) ...@@ -1049,4 +1049,10 @@ spi_unregister_device(struct spi_device *spi)
extern const struct spi_device_id * extern const struct spi_device_id *
spi_get_device_id(const struct spi_device *sdev); spi_get_device_id(const struct spi_device *sdev);
static inline bool
spi_transfer_is_last(struct spi_master *master, struct spi_transfer *xfer)
{
return list_is_last(&xfer->transfer_list, &master->cur_msg->transfers);
}
#endif /* __LINUX_SPI_H */ #endif /* __LINUX_SPI_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment