Minor cleanups in the drivers

This commit is contained in:
Lorenz Meier
2013-09-13 10:16:32 +02:00
parent 11530ac021
commit 24648b5294
2 changed files with 0 additions and 5 deletions
-4
View File
@@ -1292,10 +1292,6 @@ test()
if (fd < 0)
err(1, "%s open failed (try 'hmc5883 start' if the driver is not running", MAG_DEVICE_PATH);
/* set the queue depth to 10 */
if (OK != ioctl(fd, SENSORIOCSQUEUEDEPTH, 10))
errx(1, "failed to set queue depth");
/* do a simple demand read */
sz = read(fd, &report, sizeof(report));
-1
View File
@@ -531,7 +531,6 @@ LSM303D::reset()
/* enable mag */
write_reg(ADDR_CTRL_REG7, REG7_CONT_MODE_M);
write_reg(ADDR_CTRL_REG5, REG5_RES_HIGH_M);
irqrestore(flags);
accel_set_range(LSM303D_ACCEL_DEFAULT_RANGE_G);
accel_set_samplerate(LSM303D_ACCEL_DEFAULT_RATE);