mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-29 15:43:59 +08:00
Staging: iio: Add braces on all arms of if statement
The following patch adds braces on all arms of if statement. Issue addressed by checkpatch.pl. Signed-off-by: Haneen Mohammed <hamohammed.sa@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
281ab7efa2
commit
e273eb01fe
@ -330,19 +330,21 @@ static int lis3l02dq_buffer_postenable(struct iio_dev *indio_dev)
|
|||||||
if (test_bit(0, indio_dev->active_scan_mask)) {
|
if (test_bit(0, indio_dev->active_scan_mask)) {
|
||||||
t |= LIS3L02DQ_REG_CTRL_1_AXES_X_ENABLE;
|
t |= LIS3L02DQ_REG_CTRL_1_AXES_X_ENABLE;
|
||||||
oneenabled = true;
|
oneenabled = true;
|
||||||
} else
|
} else {
|
||||||
t &= ~LIS3L02DQ_REG_CTRL_1_AXES_X_ENABLE;
|
t &= ~LIS3L02DQ_REG_CTRL_1_AXES_X_ENABLE;
|
||||||
|
}
|
||||||
if (test_bit(1, indio_dev->active_scan_mask)) {
|
if (test_bit(1, indio_dev->active_scan_mask)) {
|
||||||
t |= LIS3L02DQ_REG_CTRL_1_AXES_Y_ENABLE;
|
t |= LIS3L02DQ_REG_CTRL_1_AXES_Y_ENABLE;
|
||||||
oneenabled = true;
|
oneenabled = true;
|
||||||
} else
|
} else {
|
||||||
t &= ~LIS3L02DQ_REG_CTRL_1_AXES_Y_ENABLE;
|
t &= ~LIS3L02DQ_REG_CTRL_1_AXES_Y_ENABLE;
|
||||||
|
}
|
||||||
if (test_bit(2, indio_dev->active_scan_mask)) {
|
if (test_bit(2, indio_dev->active_scan_mask)) {
|
||||||
t |= LIS3L02DQ_REG_CTRL_1_AXES_Z_ENABLE;
|
t |= LIS3L02DQ_REG_CTRL_1_AXES_Z_ENABLE;
|
||||||
oneenabled = true;
|
oneenabled = true;
|
||||||
} else
|
} else {
|
||||||
t &= ~LIS3L02DQ_REG_CTRL_1_AXES_Z_ENABLE;
|
t &= ~LIS3L02DQ_REG_CTRL_1_AXES_Z_ENABLE;
|
||||||
|
}
|
||||||
if (!oneenabled) /* what happens in this case is unknown */
|
if (!oneenabled) /* what happens in this case is unknown */
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
ret = lis3l02dq_spi_write_reg_8(indio_dev,
|
ret = lis3l02dq_spi_write_reg_8(indio_dev,
|
||||||
|
Loading…
Reference in New Issue
Block a user