Skip to content

Commit

Permalink
Use channel address instead of channel number
Browse files Browse the repository at this point in the history
Channel number is no longer used, instead channel address has
to be used to differentiate between channels.

Fixes: 746d823 ("drivers: imu: iio_adis: Use channel address instead of index")
Signed-off-by: Ramona Gradinariu <[email protected]>
  • Loading branch information
rbolboac authored and CiprianRegus committed Jan 11, 2024
1 parent bea8929 commit 993d6fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/imu/iio_adis.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ static int adis_iio_read_calibbias(void *dev, char *buf, uint32_t len,

adis = iio_adis->adis_dev;

switch (channel->ch_num) {
switch (channel->address) {
case ADIS_GYRO_X:
ret = adis_read_xg_bias(adis, &res);
break;
Expand Down Expand Up @@ -335,7 +335,7 @@ static int adis_iio_write_calibbias(void *dev, char *buf, uint32_t len,
if (ret)
return ret;

switch (channel->ch_num) {
switch (channel->address) {
case ADIS_GYRO_X:
return adis_write_xg_bias(adis, calibbias);
case ADIS_GYRO_Y:
Expand Down

0 comments on commit 993d6fe

Please sign in to comment.