delete unused IOCTL MAGIOCGSAMPLERATE

This commit is contained in:
Daniel Agar
2018-11-06 07:43:43 +08:00
committed by Lorenz Meier
parent 60a40ec131
commit 0ea18b2b73
14 changed files with 2 additions and 45 deletions
-3
View File
@@ -1157,9 +1157,6 @@ ADIS16448::mag_ioctl(struct file *filp, int cmd, unsigned long arg)
return OK;
}
case MAGIOCGSAMPLERATE:
return _sample_rate;
case MAGIOCSSCALE:
/* copy scale in */
memcpy(&_mag_scale, (struct mag_calibration_s *) arg, sizeof(_mag_scale));
@@ -983,9 +983,6 @@ FXOS8701CQ::mag_ioctl(struct file *filp, int cmd, unsigned long arg)
reset();
return OK;
case MAGIOCGSAMPLERATE:
return _mag_samplerate;
case MAGIOCSSCALE:
/* copy scale in */
memcpy(&_mag_scale, (struct mag_calibration_s *) arg, sizeof(_mag_scale));
-3
View File
@@ -994,9 +994,6 @@ LSM303D::mag_ioctl(struct file *filp, int cmd, unsigned long arg)
reset();
return OK;
case MAGIOCGSAMPLERATE:
return _mag_samplerate;
case MAGIOCSSCALE:
/* copy scale in */
memcpy(&_mag_scale, (struct mag_calibration_s *) arg, sizeof(_mag_scale));
-3
View File
@@ -350,9 +350,6 @@ MPU9250_mag::ioctl(struct file *filp, int cmd, unsigned long arg)
return OK;
}
case MAGIOCGSAMPLERATE:
return MPU9250_AK8963_SAMPLE_RATE;
case MAGIOCSSCALE:
/* copy scale in */
memcpy(&_mag_scale, (struct mag_scale *) arg, sizeof(_mag_scale));