aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-08-28 23:56:00 -0400
committerJonathan Cameron <jic23@kernel.org>2014-08-30 05:31:46 -0400
commit63d1157dedd79e37bbc3f68f6a9886c5eeb99c27 (patch)
tree6b3a428c0cfc70fb2a451166dbe97ff1d19add04 /drivers/iio
parent81816affeacfa360bfefabba774774e95f3dcc12 (diff)
iio: imu: inv_mpu6050: Remove casting the return value which is a void pointer
Casting the return value which is a void pointer is redundant. The conversion from void pointer to any other pointer type is guaranteed by the C programming language. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/imu/inv_mpu6050/inv_mpu_core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c b/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
index 0c6517c94a9d..b75519deac1a 100644
--- a/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
+++ b/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
@@ -673,8 +673,7 @@ static int inv_mpu_probe(struct i2c_client *client,
673 673
674 st = iio_priv(indio_dev); 674 st = iio_priv(indio_dev);
675 st->client = client; 675 st->client = client;
676 pdata = (struct inv_mpu6050_platform_data 676 pdata = dev_get_platdata(&client->dev);
677 *)dev_get_platdata(&client->dev);
678 if (pdata) 677 if (pdata)
679 st->plat_data = *pdata; 678 st->plat_data = *pdata;
680 /* power is turned on inside check chip type*/ 679 /* power is turned on inside check chip type*/