diff options
author | Jin Park <jinyoungp@nvidia.com> | 2011-09-28 17:13:03 +0900 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:49:06 -0800 |
commit | 043f549dc02e1d6e3ab33193a55f4053824d6e83 (patch) | |
tree | c65b76f88149556ae770c07b8432676493ff9efc /drivers/video | |
parent | d6848ad6ddbd3ab7ee5fda5dcde7e99d97b5b288 (diff) |
mfd: aat2870: Update the driver to new mfd core
The mfd core was updated that removed size_t data_size and
renamed void *platform_data to void *mfd_data in struct mfd_cell.
The new mfd API, mfd_get_data(), was added for mfd device.
It return from struct platform_device to right value of mfd_data
and platform_data.
Change-Id: I9b61d0ac0139be840c328fc0b266752d27815cf5
Signed-off-by: Jin Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/54912
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Rebase-Id: Rc0b7b7d376c1bab14eab86a9bdfa4cd5b970bbf8
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/backlight/aat2870_bl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/backlight/aat2870_bl.c b/drivers/video/backlight/aat2870_bl.c index 331f1ef1dad5..203eaa65717e 100644 --- a/drivers/video/backlight/aat2870_bl.c +++ b/drivers/video/backlight/aat2870_bl.c @@ -27,6 +27,7 @@ #include <linux/delay.h> #include <linux/fb.h> #include <linux/backlight.h> +#include <linux/mfd/core.h> #include <linux/mfd/aat2870.h> struct aat2870_bl_driver_data { @@ -127,7 +128,7 @@ static const struct backlight_ops aat2870_bl_ops = { static int aat2870_bl_probe(struct platform_device *pdev) { - struct aat2870_bl_platform_data *pdata = pdev->dev.platform_data; + struct aat2870_bl_platform_data *pdata = mfd_get_data(pdev); struct aat2870_bl_driver_data *aat2870_bl; struct backlight_device *bd; struct backlight_properties props; |