Skip to content

Commit ba279f5

Browse files
author
Samuel Ortiz
committed
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 <[email protected]>
1 parent 17cf8b4 commit ba279f5

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

include/linux/mfd/core.h

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ struct mfd_cell {
3333
int (*suspend)(struct platform_device *dev);
3434
int (*resume)(struct platform_device *dev);
3535

36-
/* mfd_data can be used to pass data to client drivers */
37-
void *mfd_data;
38-
3936
/* platform data passed to the sub devices drivers */
4037
void *platform_data;
4138
size_t pdata_size;
@@ -93,24 +90,6 @@ static inline const struct mfd_cell *mfd_get_cell(struct platform_device *pdev)
9390
return pdev->mfd_cell;
9491
}
9592

96-
/*
97-
* Given a platform device that's been created by mfd_add_devices(), fetch
98-
* the .mfd_data entry from the mfd_cell that created it.
99-
* Otherwise just return the platform_data pointer.
100-
* This maintains compatibility with platform drivers whose devices aren't
101-
* created by the mfd layer, and expect platform_data to contain what would've
102-
* otherwise been in mfd_data.
103-
*/
104-
static inline void *mfd_get_data(struct platform_device *pdev)
105-
{
106-
const struct mfd_cell *cell = mfd_get_cell(pdev);
107-
108-
if (cell)
109-
return cell->mfd_data;
110-
else
111-
return pdev->dev.platform_data;
112-
}
113-
11493
extern int mfd_add_devices(struct device *parent, int id,
11594
struct mfd_cell *cells, int n_devs,
11695
struct resource *mem_base,

0 commit comments

Comments
 (0)