]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/mfd/core.h
mfd: add platform_data to mfd_cell
[linux-2.6-omap-h63xx.git] / include / linux / mfd / core.h
index b7cbb9968339c413c7c26727b81de5cf0c054b7f..ea45d4a5a2acf1e7a819eb3152d6f1272d55c73b 100644 (file)
@@ -29,7 +29,13 @@ struct mfd_cell {
        int                     (*suspend)(struct platform_device *dev);
        int                     (*resume)(struct platform_device *dev);
 
-       void                    *driver_data; /* driver-specific data */
+       /* driver-specific data for MFD-aware "cell" drivers */
+       void                    *driver_data;
+
+       /* platform_data can be used to either pass data to "generic"
+          driver or as a hook to mfd_cell for the "cell" drivers */
+       void                    *platform_data;
+       size_t                  data_size;
 
        /*
         * This resources can be specified relatievly to the parent device.
@@ -39,11 +45,6 @@ struct mfd_cell {
        const struct resource   *resources;
 };
 
-static inline struct mfd_cell *mfd_get_cell(struct platform_device *pdev)
-{
-       return (struct mfd_cell *)pdev->dev.platform_data;
-}
-
 extern int mfd_add_devices(struct platform_device *parent,
                           const struct mfd_cell *cells, int n_devs,
                           struct resource *mem_base,