aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mfd/core.h4
-rw-r--r--include/linux/platform_device.h6
-rw-r--r--include/linux/property.h15
3 files changed, 8 insertions, 17 deletions
diff --git a/include/linux/mfd/core.h b/include/linux/mfd/core.h
index bc6f7e00fb3d..9837f1e8c94c 100644
--- a/include/linux/mfd/core.h
+++ b/include/linux/mfd/core.h
@@ -17,7 +17,7 @@
17#include <linux/platform_device.h> 17#include <linux/platform_device.h>
18 18
19struct irq_domain; 19struct irq_domain;
20struct property_set; 20struct property_entry;
21 21
22/* Matches ACPI PNP id, either _HID or _CID, or ACPI _ADR */ 22/* Matches ACPI PNP id, either _HID or _CID, or ACPI _ADR */
23struct mfd_cell_acpi_match { 23struct mfd_cell_acpi_match {
@@ -47,7 +47,7 @@ struct mfd_cell {
47 size_t pdata_size; 47 size_t pdata_size;
48 48
49 /* device properties passed to the sub devices drivers */ 49 /* device properties passed to the sub devices drivers */
50 const struct property_set *pset; 50 struct property_entry *properties;
51 51
52 /* 52 /*
53 * Device Tree compatible string 53 * Device Tree compatible string
diff --git a/include/linux/platform_device.h b/include/linux/platform_device.h
index 03b755521fd9..98c2a7c7108e 100644
--- a/include/linux/platform_device.h
+++ b/include/linux/platform_device.h
@@ -18,7 +18,7 @@
18#define PLATFORM_DEVID_AUTO (-2) 18#define PLATFORM_DEVID_AUTO (-2)
19 19
20struct mfd_cell; 20struct mfd_cell;
21struct property_set; 21struct property_entry;
22 22
23struct platform_device { 23struct platform_device {
24 const char *name; 24 const char *name;
@@ -73,7 +73,7 @@ struct platform_device_info {
73 size_t size_data; 73 size_t size_data;
74 u64 dma_mask; 74 u64 dma_mask;
75 75
76 const struct property_set *pset; 76 struct property_entry *properties;
77}; 77};
78extern struct platform_device *platform_device_register_full( 78extern struct platform_device *platform_device_register_full(
79 const struct platform_device_info *pdevinfo); 79 const struct platform_device_info *pdevinfo);
@@ -172,7 +172,7 @@ extern int platform_device_add_resources(struct platform_device *pdev,
172extern int platform_device_add_data(struct platform_device *pdev, 172extern int platform_device_add_data(struct platform_device *pdev,
173 const void *data, size_t size); 173 const void *data, size_t size);
174extern int platform_device_add_properties(struct platform_device *pdev, 174extern int platform_device_add_properties(struct platform_device *pdev,
175 const struct property_set *pset); 175 struct property_entry *properties);
176extern int platform_device_add(struct platform_device *pdev); 176extern int platform_device_add(struct platform_device *pdev);
177extern void platform_device_del(struct platform_device *pdev); 177extern void platform_device_del(struct platform_device *pdev);
178extern void platform_device_put(struct platform_device *pdev); 178extern void platform_device_put(struct platform_device *pdev);
diff --git a/include/linux/property.h b/include/linux/property.h
index b51fcd36d892..ecab11e40794 100644
--- a/include/linux/property.h
+++ b/include/linux/property.h
@@ -238,18 +238,9 @@ struct property_entry {
238 .name = _name_, \ 238 .name = _name_, \
239} 239}
240 240
241/** 241int device_add_properties(struct device *dev,
242 * struct property_set - Collection of "built-in" device properties. 242 struct property_entry *properties);
243 * @fwnode: Handle to be pointed to by the fwnode field of struct device. 243void device_remove_properties(struct device *dev);
244 * @properties: Array of properties terminated with a null entry.
245 */
246struct property_set {
247 struct fwnode_handle fwnode;
248 struct property_entry *properties;
249};
250
251int device_add_property_set(struct device *dev, const struct property_set *pset);
252void device_remove_property_set(struct device *dev);
253 244
254bool device_dma_supported(struct device *dev); 245bool device_dma_supported(struct device *dev);
255 246