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

mfd: Remove mfd_data

Cell pointers are passed through device->mfd_cell and platform data
is passed through the MFD cell platform_data pointer.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

-21
-21
include/linux/mfd/core.h
··· 33 33 int (*suspend)(struct platform_device *dev); 34 34 int (*resume)(struct platform_device *dev); 35 35 36 - /* mfd_data can be used to pass data to client drivers */ 37 - void *mfd_data; 38 - 39 36 /* platform data passed to the sub devices drivers */ 40 37 void *platform_data; 41 38 size_t pdata_size; ··· 88 91 static inline const struct mfd_cell *mfd_get_cell(struct platform_device *pdev) 89 92 { 90 93 return pdev->mfd_cell; 91 - } 92 - 93 - /* 94 - * Given a platform device that's been created by mfd_add_devices(), fetch 95 - * the .mfd_data entry from the mfd_cell that created it. 96 - * Otherwise just return the platform_data pointer. 97 - * This maintains compatibility with platform drivers whose devices aren't 98 - * created by the mfd layer, and expect platform_data to contain what would've 99 - * otherwise been in mfd_data. 100 - */ 101 - static inline void *mfd_get_data(struct platform_device *pdev) 102 - { 103 - const struct mfd_cell *cell = mfd_get_cell(pdev); 104 - 105 - if (cell) 106 - return cell->mfd_data; 107 - else 108 - return pdev->dev.platform_data; 109 94 } 110 95 111 96 extern int mfd_add_devices(struct device *parent, int id,