Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 251920
b: refs/heads/master
c: ba279f5
h: refs/heads/master
v: v3
  • Loading branch information
Samuel Ortiz committed May 26, 2011
1 parent 193db43 commit 8a3229d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 17cf8b429341869c154268f9d92d32a74295a29a
refs/heads/master: ba279f58c6148c1dc76265da98eb292e76c15a32
21 changes: 0 additions & 21 deletions trunk/include/linux/mfd/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ struct mfd_cell {
int (*suspend)(struct platform_device *dev);
int (*resume)(struct platform_device *dev);

/* mfd_data can be used to pass data to client drivers */
void *mfd_data;

/* platform data passed to the sub devices drivers */
void *platform_data;
size_t pdata_size;
Expand Down Expand Up @@ -93,24 +90,6 @@ static inline const struct mfd_cell *mfd_get_cell(struct platform_device *pdev)
return pdev->mfd_cell;
}

/*
* Given a platform device that's been created by mfd_add_devices(), fetch
* the .mfd_data entry from the mfd_cell that created it.
* Otherwise just return the platform_data pointer.
* This maintains compatibility with platform drivers whose devices aren't
* created by the mfd layer, and expect platform_data to contain what would've
* otherwise been in mfd_data.
*/
static inline void *mfd_get_data(struct platform_device *pdev)
{
const struct mfd_cell *cell = mfd_get_cell(pdev);

if (cell)
return cell->mfd_data;
else
return pdev->dev.platform_data;
}

extern int mfd_add_devices(struct device *parent, int id,
struct mfd_cell *cells, int n_devs,
struct resource *mem_base,
Expand Down

0 comments on commit 8a3229d

Please sign in to comment.