Staging: iio: accelerometers trivial checkpatch related fixes
authorJonathan Cameron <jic23@cam.ac.uk>
Tue, 4 May 2010 21:34:36 +0000 (22:34 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 11 May 2010 18:36:10 +0000 (11:36 -0700)
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/accel/lis3l02dq_ring.c
drivers/staging/iio/accel/sca3000_core.c

index 7617da81871c687b6680954eaa03e81415643483..9214d847fa3353441aa704827785b62917110bc3 100644 (file)
@@ -192,8 +192,7 @@ error_ret:
 
 }
 
-static const u8 read_all_tx_array[] =
-{
+static const u8 read_all_tx_array[] = {
        LIS3L02DQ_READ_REG(LIS3L02DQ_REG_OUT_X_L_ADDR), 0,
        LIS3L02DQ_READ_REG(LIS3L02DQ_REG_OUT_X_H_ADDR), 0,
        LIS3L02DQ_READ_REG(LIS3L02DQ_REG_OUT_Y_L_ADDR), 0,
@@ -358,10 +357,10 @@ static int lis3l02dq_data_rdy_ring_predisable(struct iio_dev *indio_dev)
 
 
 /* Caller responsible for locking as necessary. */
-static int __lis3l02dq_write_data_ready_config(struct device *dev,
-                                              struct
-                                              iio_event_handler_list *list,
-                                              bool state)
+static int
+__lis3l02dq_write_data_ready_config(struct device *dev,
+                                   struct iio_event_handler_list *list,
+                                   bool state)
 {
        int ret;
        u8 valold;
index 9485b132f6dd4325ee6590d0f71955b8095edd59..d4f82c39f33514dbdc7848f14461cdadf7dc9ed8 100644 (file)
@@ -277,7 +277,7 @@ static int sca3000_check_status(struct device *dev)
        if (ret < 0)
                goto error_ret;
        if (rx[1] & SCA3000_EEPROM_CS_ERROR)
-               dev_err(dev, "eeprom error \n");
+               dev_err(dev, "eeprom error\n");
        if (rx[1] & SCA3000_SPI_FRAME_ERROR)
                dev_err(dev, "Previous SPI Frame was corrupt\n");
        kfree(rx);
@@ -394,7 +394,7 @@ sca3000_show_available_measurement_modes(struct device *dev,
                break;
        }
        /* always supported */
-       len += sprintf(buf + len, " 3 - motion detection \n");
+       len += sprintf(buf + len, " 3 - motion detection\n");
 
        return len;
 }