diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2011-04-06 05:41:03 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-05-26 13:45:00 -0400 |
commit | 121ea573aeb7e9b1d79effa8ef7970031aebda12 (patch) | |
tree | cbde4018e74e37fb4697ae5a9f1eb0a0096fae8b /drivers/mfd | |
parent | ec71974f2a3ae052cdbb57a92ce3c3b34ebd7b5d (diff) |
w1: Use device platform_data to retrieve ds1wm platform bits
With the addition of the platform device mfd_cell pointer, we can now
cleanly pass the sub device drivers platform data pointers through the
regular device platform_data one, and get rid of mfd_get_data().
Cc: Matt Reimer <mreimer@vpop.net>
Cc: Philipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/asic3.c | 3 | ||||
-rw-r--r-- | drivers/mfd/htc-pasic3.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/mfd/asic3.c b/drivers/mfd/asic3.c index a26280240bb9..77a3971e00bd 100644 --- a/drivers/mfd/asic3.c +++ b/drivers/mfd/asic3.c | |||
@@ -676,7 +676,8 @@ static struct mfd_cell asic3_cell_ds1wm = { | |||
676 | .name = "ds1wm", | 676 | .name = "ds1wm", |
677 | .enable = ds1wm_enable, | 677 | .enable = ds1wm_enable, |
678 | .disable = ds1wm_disable, | 678 | .disable = ds1wm_disable, |
679 | .mfd_data = &ds1wm_pdata, | 679 | .platform_data = &ds1wm_pdata, |
680 | .pdata_size = sizeof(ds1wm_pdata), | ||
680 | .num_resources = ARRAY_SIZE(ds1wm_resources), | 681 | .num_resources = ARRAY_SIZE(ds1wm_resources), |
681 | .resources = ds1wm_resources, | 682 | .resources = ds1wm_resources, |
682 | }; | 683 | }; |
diff --git a/drivers/mfd/htc-pasic3.c b/drivers/mfd/htc-pasic3.c index fb9770b39a32..95a4ff48b282 100644 --- a/drivers/mfd/htc-pasic3.c +++ b/drivers/mfd/htc-pasic3.c | |||
@@ -117,7 +117,8 @@ static struct mfd_cell ds1wm_cell __initdata = { | |||
117 | .name = "ds1wm", | 117 | .name = "ds1wm", |
118 | .enable = ds1wm_enable, | 118 | .enable = ds1wm_enable, |
119 | .disable = ds1wm_disable, | 119 | .disable = ds1wm_disable, |
120 | .mfd_data = &ds1wm_pdata, | 120 | .platform_data = &ds1wm_pdata, |
121 | .pdata_size = sizeof(ds1wm_pdata), | ||
121 | .num_resources = 2, | 122 | .num_resources = 2, |
122 | .resources = ds1wm_resources, | 123 | .resources = ds1wm_resources, |
123 | }; | 124 | }; |