Commit c2472d0b authored by Adriana Reus's avatar Adriana Reus Committed by Jonathan Cameron

iio: inv_mpu6050: Remove unused parameter

The inv_check_and_setup_chip function does not use the i2c_device_id
parameter. Therefore remove it.
Signed-off-by: default avatarAdriana Reus <adriana.reus@intel.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 27dec00e
...@@ -727,8 +727,7 @@ static const struct iio_info mpu_info = { ...@@ -727,8 +727,7 @@ static const struct iio_info mpu_info = {
/** /**
* inv_check_and_setup_chip() - check and setup chip. * inv_check_and_setup_chip() - check and setup chip.
*/ */
static int inv_check_and_setup_chip(struct inv_mpu6050_state *st, static int inv_check_and_setup_chip(struct inv_mpu6050_state *st)
const struct i2c_device_id *id)
{ {
int result; int result;
...@@ -795,7 +794,7 @@ static int inv_mpu_probe(struct i2c_client *client, ...@@ -795,7 +794,7 @@ static int inv_mpu_probe(struct i2c_client *client,
if (pdata) if (pdata)
st->plat_data = *pdata; st->plat_data = *pdata;
/* power is turned on inside check chip type*/ /* power is turned on inside check chip type*/
result = inv_check_and_setup_chip(st, id); result = inv_check_and_setup_chip(st);
if (result) if (result)
return result; return result;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment