aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2021-09-03 18:31:40 -0700
committerMark Brown <broonie@kernel.org>2022-01-07 17:14:30 +0000
commit44ea62813f0ab3d718de480504f4dfd0bdd01858 (patch)
tree6cf74c49494892ff065a185625ca8aa466e16bee /drivers/spi
parentspi: spi-meson-spifc: Add missing pm_runtime_disable() in meson_spifc_probe (diff)
downloadlinux-dev-44ea62813f0ab3d718de480504f4dfd0bdd01858.tar.xz
linux-dev-44ea62813f0ab3d718de480504f4dfd0bdd01858.zip
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. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Tested-by: Vladimir Oltean <vladimir.oltean@nxp.com> Link: https://lore.kernel.org/r/20210904013140.2377609-1-kuba@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index 7c790858547c..4599b121d744 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -33,6 +33,7 @@
#include <linux/highmem.h>
#include <linux/idr.h>
#include <linux/platform_data/x86/apple.h>
+#include <linux/ptp_clock_kernel.h>
#define CREATE_TRACE_POINTS
#include <trace/events/spi.h>