Re: [driver-core PATCH v5 6/9] driver core: Probe devices asynchronously instead of the driver

From: Bart Van Assche
Date: Tue Nov 06 2018 - 19:22:47 EST


On Mon, 2018-11-05 at 13:12 -0800, Alexander Duyck wrote:
+AD4 diff --git a/include/linux/device.h b/include/linux/device.h
+AD4 index fc7091d436c2..4d9a39769081 100644
+AD4 --- a/include/linux/device.h
+AD4 +-+-+- b/include/linux/device.h
+AD4 +AFs ... +AF0
+AD4 +-static inline struct device+AF8-driver +ACo-dev+AF8-get+AF8-drv+AF8-async(const struct device +ACo-dev)
+AD4 +-+AHs
+AD4 +- return dev-+AD4-async+AF8-probe ? dev-+AD4-driver+AF8-data : NULL+ADs
+AD4 +-+AH0
+AD4 +-
+AD4 +-static inline void dev+AF8-set+AF8-drv+AF8-async(struct device +ACo-dev,
+AD4 +- struct device+AF8-driver +ACo-drv)
+AD4 +-+AHs
+AD4 +- /+ACo
+AD4 +- +ACo Set async+AF8-probe to true indicating we are waiting for this data to be
+AD4 +- +ACo loaded as a potential driver.
+AD4 +- +ACo-/
+AD4 +- dev-+AD4-driver+AF8-data +AD0 drv+ADs
+AD4 +- dev-+AD4-async+AF8-probe +AD0 true+ADs
+AD4 +-+AH0

Since these two new functions are only used in the driver core please move
their definition into the driver core.

Thanks,

Bart.