summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorNizam Haider <nizamhaider786@gmail.com>2015-11-23 23:18:50 +0530
committerJonathan Cameron <jic23@kernel.org>2015-12-02 18:42:06 +0000
commita260527f83dfebe7c49bd6582ed6aa1be29f355a (patch)
tree76f1a90c8eedf471cce6076d45ba465dce834171 /drivers
parent22b19ab3e2d6da666be816e649af67bf721b8561 (diff)
downloadlinux-a260527f83dfebe7c49bd6582ed6aa1be29f355a.tar.bz2
Staging: iio: light: tsl2x7x_core: use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of accessing dev->platform_data directly. Signed-off-by: Nizam Haider <nijamh@cdac.in> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/iio/light/tsl2x7x_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/light/tsl2x7x_core.c b/drivers/staging/iio/light/tsl2x7x_core.c
index 9dfd04855a1b..5b1c1650a0e4 100644
--- a/drivers/staging/iio/light/tsl2x7x_core.c
+++ b/drivers/staging/iio/light/tsl2x7x_core.c
@@ -1898,7 +1898,7 @@ static int tsl2x7x_probe(struct i2c_client *clientp,
mutex_init(&chip->prox_mutex);
chip->tsl2x7x_chip_status = TSL2X7X_CHIP_UNKNOWN;
- chip->pdata = clientp->dev.platform_data;
+ chip->pdata = dev_get_platdata(&clientp->dev);
chip->id = id->driver_data;
chip->chip_info =
&tsl2x7x_chip_info_tbl[device_channel_config[id->driver_data]];