Merge remote-tracking branch 'spi/topic/core' into spi-next
This commit is contained in:
Коммит
19a0368028
|
@ -1001,7 +1001,7 @@ static int spi_init_queue(struct spi_master *master)
|
|||
dev_name(&master->dev));
|
||||
if (IS_ERR(master->kworker_task)) {
|
||||
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);
|
||||
|
||||
|
|
|
@ -1049,4 +1049,10 @@ spi_unregister_device(struct spi_device *spi)
|
|||
extern const struct spi_device_id *
|
||||
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 */
|
||||
|
|
Загрузка…
Ссылка в новой задаче