delete unused IOCTL MAGIOCGRANGE

This commit is contained in:
Daniel Agar
2018-11-06 07:43:43 +08:00
committed by Lorenz Meier
parent 0ea18b2b73
commit d76155107c
8 changed files with 2 additions and 23 deletions
-3
View File
@@ -78,9 +78,6 @@ struct mag_calibration_s {
/** set the measurement range to handle (at least) arg Gauss */
#define MAGIOCSRANGE _MAGIOC(6)
/** return the current mag measurement range in Gauss */
#define MAGIOCGRANGE _MAGIOC(7)
/** perform self-calibration, update scale factors to canonical units */
#define MAGIOCCALIBRATE _MAGIOC(8)
-3
View File
@@ -1167,9 +1167,6 @@ ADIS16448::mag_ioctl(struct file *filp, int cmd, unsigned long arg)
memcpy((struct mag_calibration_s *) arg, &_mag_scale, sizeof(_mag_scale));
return OK;
case MAGIOCGRANGE:
return (unsigned long)(_mag_range_mgauss);
default:
/* give it to the superclass */
return SPI::ioctl(filp, cmd, arg);
@@ -700,9 +700,6 @@ HMC5883::ioctl(struct file *filp, int cmd, unsigned long arg)
case MAGIOCSRANGE:
return set_range(arg);
case MAGIOCGRANGE:
return _range_ga;
case MAGIOCSSCALE:
/* set new scale factors */
memcpy(&_scale, (struct mag_calibration_s *)arg, sizeof(_scale));
@@ -587,9 +587,6 @@ LIS3MDL::ioctl(struct file *file_pointer, int cmd, unsigned long arg)
case MAGIOCSRANGE:
return set_range(arg);
case MAGIOCGRANGE:
return _range_ga;
case MAGIOCSSCALE:
/* set new scale factors */
memcpy(&_scale, (struct mag_calibration_s *)arg, sizeof(_scale));
@@ -449,10 +449,6 @@ RM3100::ioctl(struct file *file_pointer, int cmd, unsigned long arg)
/* field measurement range cannot be configured for this sensor (8 Gauss) */
return OK;
case MAGIOCGRANGE:
/* field measurement range cannot be configured for this sensor (8 Gauss) */
return 8;
case MAGIOCSSCALE:
/* set new scale factors */
memcpy(&_scale, (struct mag_calibration_s *)arg, sizeof(_scale));