Commit 26de7208 authored by Jonathan Cameron's avatar Jonathan Cameron Committed by Greg Kroah-Hartman

Staging: iio: accelerometers trivial checkpatch related fixes

Signed-off-by: default avatarJonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 5f87404d
...@@ -192,8 +192,7 @@ ssize_t lis3l02dq_read_accel_from_ring(struct device *dev, ...@@ -192,8 +192,7 @@ ssize_t lis3l02dq_read_accel_from_ring(struct device *dev,
} }
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_L_ADDR), 0,
LIS3L02DQ_READ_REG(LIS3L02DQ_REG_OUT_X_H_ADDR), 0, LIS3L02DQ_READ_REG(LIS3L02DQ_REG_OUT_X_H_ADDR), 0,
LIS3L02DQ_READ_REG(LIS3L02DQ_REG_OUT_Y_L_ADDR), 0, LIS3L02DQ_READ_REG(LIS3L02DQ_REG_OUT_Y_L_ADDR), 0,
...@@ -358,9 +357,9 @@ static int lis3l02dq_data_rdy_ring_predisable(struct iio_dev *indio_dev) ...@@ -358,9 +357,9 @@ static int lis3l02dq_data_rdy_ring_predisable(struct iio_dev *indio_dev)
/* Caller responsible for locking as necessary. */ /* Caller responsible for locking as necessary. */
static int __lis3l02dq_write_data_ready_config(struct device *dev, static int
struct __lis3l02dq_write_data_ready_config(struct device *dev,
iio_event_handler_list *list, struct iio_event_handler_list *list,
bool state) bool state)
{ {
int ret; int ret;
......
...@@ -277,7 +277,7 @@ static int sca3000_check_status(struct device *dev) ...@@ -277,7 +277,7 @@ static int sca3000_check_status(struct device *dev)
if (ret < 0) if (ret < 0)
goto error_ret; goto error_ret;
if (rx[1] & SCA3000_EEPROM_CS_ERROR) 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) if (rx[1] & SCA3000_SPI_FRAME_ERROR)
dev_err(dev, "Previous SPI Frame was corrupt\n"); dev_err(dev, "Previous SPI Frame was corrupt\n");
kfree(rx); kfree(rx);
...@@ -394,7 +394,7 @@ sca3000_show_available_measurement_modes(struct device *dev, ...@@ -394,7 +394,7 @@ sca3000_show_available_measurement_modes(struct device *dev,
break; break;
} }
/* always supported */ /* always supported */
len += sprintf(buf + len, " 3 - motion detection \n"); len += sprintf(buf + len, " 3 - motion detection\n");
return len; return len;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment