Skip to content

Commit 420b104

Browse files
andy-shevgregkh
authored andcommitted
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>
1 parent 1c4002a commit 420b104

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

include/linux/fwnode.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
#include <linux/bits.h>
1515
#include <linux/err.h>
1616

17+
enum dev_dma_attr {
18+
DEV_DMA_NOT_SUPPORTED,
19+
DEV_DMA_NON_COHERENT,
20+
DEV_DMA_COHERENT,
21+
};
22+
1723
struct fwnode_operations;
1824
struct device;
1925

include/linux/property.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,6 @@ enum dev_prop_type {
2727
DEV_PROP_REF,
2828
};
2929

30-
enum dev_dma_attr {
31-
DEV_DMA_NOT_SUPPORTED,
32-
DEV_DMA_NON_COHERENT,
33-
DEV_DMA_COHERENT,
34-
};
35-
3630
const struct fwnode_handle *__dev_fwnode_const(const struct device *dev);
3731
struct fwnode_handle *__dev_fwnode(struct device *dev);
3832
#define dev_fwnode(dev) \

0 commit comments

Comments
 (0)