device property: Move enum dev_dma_attr to fwnode.h
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 1 Mar 2024 18:00:07 +0000 (20:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Mar 2024 22:07:24 +0000 (22:07 +0000)
The struct fwnode_operations defines one of the callback to return
enum dev_dma_attr. But this currently is defined in property.h.
Move it to the correct location.

Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: "Rafael J. Wysocki" <rafael@kernel.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240301180138.271590-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/fwnode.h
include/linux/property.h

index 416cbe72f0c7a8151cb8df5c2eca54a9cdec4a2e..4228c45d5ccc3f62b9e68128d014fa788796060b 100644 (file)
 #include <linux/bits.h>
 #include <linux/err.h>
 
+enum dev_dma_attr {
+       DEV_DMA_NOT_SUPPORTED,
+       DEV_DMA_NON_COHERENT,
+       DEV_DMA_COHERENT,
+};
+
 struct fwnode_operations;
 struct device;
 
index 284ff79ebf03df86d72b576b3cc53805b90deb35..1f0135e24d00b96fa6db3b4b44f0a3d78aa2189a 100644 (file)
@@ -27,12 +27,6 @@ enum dev_prop_type {
        DEV_PROP_REF,
 };
 
-enum dev_dma_attr {
-       DEV_DMA_NOT_SUPPORTED,
-       DEV_DMA_NON_COHERENT,
-       DEV_DMA_COHERENT,
-};
-
 const struct fwnode_handle *__dev_fwnode_const(const struct device *dev);
 struct fwnode_handle *__dev_fwnode(struct device *dev);
 #define dev_fwnode(dev)                                                        \