mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
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: Adriana Reus <adriana.reus@intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
27dec00ecf
commit
c2472d0bbc
1 changed files with 2 additions and 3 deletions
|
@ -727,8 +727,7 @@ static const struct iio_info mpu_info = {
|
|||
/**
|
||||
* inv_check_and_setup_chip() - check and setup chip.
|
||||
*/
|
||||
static int inv_check_and_setup_chip(struct inv_mpu6050_state *st,
|
||||
const struct i2c_device_id *id)
|
||||
static int inv_check_and_setup_chip(struct inv_mpu6050_state *st)
|
||||
{
|
||||
int result;
|
||||
|
||||
|
@ -795,7 +794,7 @@ static int inv_mpu_probe(struct i2c_client *client,
|
|||
if (pdata)
|
||||
st->plat_data = *pdata;
|
||||
/* 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)
|
||||
return result;
|
||||
|
||||
|
|
Loading…
Reference in a new issue