Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

device property: Move enum dev_dma_attr to fwnode.h

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>

authored by

Andy Shevchenko and committed by
Greg Kroah-Hartman
420b104d 1c4002ae

+6 -6
+6
include/linux/fwnode.h
··· 14 14 #include <linux/bits.h> 15 15 #include <linux/err.h> 16 16 17 + enum dev_dma_attr { 18 + DEV_DMA_NOT_SUPPORTED, 19 + DEV_DMA_NON_COHERENT, 20 + DEV_DMA_COHERENT, 21 + }; 22 + 17 23 struct fwnode_operations; 18 24 struct device; 19 25
-6
include/linux/property.h
··· 27 27 DEV_PROP_REF, 28 28 }; 29 29 30 - enum dev_dma_attr { 31 - DEV_DMA_NOT_SUPPORTED, 32 - DEV_DMA_NON_COHERENT, 33 - DEV_DMA_COHERENT, 34 - }; 35 - 36 30 const struct fwnode_handle *__dev_fwnode_const(const struct device *dev); 37 31 struct fwnode_handle *__dev_fwnode(struct device *dev); 38 32 #define dev_fwnode(dev) \