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
@@ -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));