diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/mfd/core.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/linux/mfd/core.h b/include/linux/mfd/core.h index b7cbb9968339..ea45d4a5a2ac 100644 --- a/include/linux/mfd/core.h +++ b/include/linux/mfd/core.h | |||
@@ -29,7 +29,13 @@ struct mfd_cell { | |||
29 | int (*suspend)(struct platform_device *dev); | 29 | int (*suspend)(struct platform_device *dev); |
30 | int (*resume)(struct platform_device *dev); | 30 | int (*resume)(struct platform_device *dev); |
31 | 31 | ||
32 | void *driver_data; /* driver-specific data */ | 32 | /* driver-specific data for MFD-aware "cell" drivers */ |
33 | void *driver_data; | ||
34 | |||
35 | /* platform_data can be used to either pass data to "generic" | ||
36 | driver or as a hook to mfd_cell for the "cell" drivers */ | ||
37 | void *platform_data; | ||
38 | size_t data_size; | ||
33 | 39 | ||
34 | /* | 40 | /* |
35 | * This resources can be specified relatievly to the parent device. | 41 | * This resources can be specified relatievly to the parent device. |
@@ -39,11 +45,6 @@ struct mfd_cell { | |||
39 | const struct resource *resources; | 45 | const struct resource *resources; |
40 | }; | 46 | }; |
41 | 47 | ||
42 | static inline struct mfd_cell *mfd_get_cell(struct platform_device *pdev) | ||
43 | { | ||
44 | return (struct mfd_cell *)pdev->dev.platform_data; | ||
45 | } | ||
46 | |||
47 | extern int mfd_add_devices(struct platform_device *parent, | 48 | extern int mfd_add_devices(struct platform_device *parent, |
48 | const struct mfd_cell *cells, int n_devs, | 49 | const struct mfd_cell *cells, int n_devs, |
49 | struct resource *mem_base, | 50 | struct resource *mem_base, |