summaryrefslogtreecommitdiffstats
path: root/drivers/video/backlight/lm3639_bl.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-11-12 15:09:04 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2013-11-13 12:09:16 +0900
commitc512794cada491e008eeca822af7e4ad5db72a56 (patch)
tree08b65bb08c7387e45b6bc0d2c4b849ad6b921df5 /drivers/video/backlight/lm3639_bl.c
parent1f299997b460d08356006945345a8962f7ecd719 (diff)
backlight: use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of accessing dev->platform_data directly. This is a cosmetic change to make the code simpler and enhance the readability. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/backlight/lm3639_bl.c')
-rw-r--r--drivers/video/backlight/lm3639_bl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/backlight/lm3639_bl.c b/drivers/video/backlight/lm3639_bl.c
index 6c888e39e4c..6fd60adf922 100644
--- a/drivers/video/backlight/lm3639_bl.c
+++ b/drivers/video/backlight/lm3639_bl.c
@@ -307,7 +307,7 @@ static int lm3639_probe(struct i2c_client *client,
{
int ret;
struct lm3639_chip_data *pchip;
- struct lm3639_platform_data *pdata = client->dev.platform_data;
+ struct lm3639_platform_data *pdata = dev_get_platdata(&client->dev);
struct backlight_properties props;
if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C)) {