History

spi: don't include ptp_clock_kernel.h in spi.h

Commit b42faeee718c ("spi: Add a PTP system timestamp to the transfer structure") added an include of ptp_clock_kernel.h to spi.h for struct ptp_system_timestamp but a forward declaration is enough. Let's use that to limit the number of objects we have to rebuild every time we touch networking headers.

Jakub Kicinski committed 5 years ago

Commit 44ea6281 parent 69c1b872 files · +2 −1Browse files

Showing the changes to include (1 of 2 files). Show all

Unified · Split

include/linux/spi/spi.h+1−1
@@ -14,12 +14,12 @@ · 13 unmodified lines
1414 #include <linux/completion.h>
1515 #include <linux/scatterlist.h>
1616 #include <linux/gpio/consumer.h>
17−#include <linux/ptp_clock_kernel.h>
1817
1918 #include <uapi/linux/spi/spi.h>
2019
2120 struct dma_chan;
2221 struct software_node;
22+struct ptp_system_timestamp;
2323 struct spi_controller;
2424 struct spi_transfer;
2525 struct spi_controller_mem_ops;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t