mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 22:45:23 +07:00
staging: iio: accel: place logical operators on the previous line
This patch moves the logical operators on the previous line in order to follow the linux coding style. Signed-off-by: Ioana Ciornei <ciorneiioana@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
663b03d8ae
commit
48948abe05
@ -980,14 +980,14 @@ static int sca3000_write_event_config(struct iio_dev *indio_dev,
|
|||||||
if (ret)
|
if (ret)
|
||||||
goto exit_point;
|
goto exit_point;
|
||||||
/* if off and should be on */
|
/* if off and should be on */
|
||||||
if ((st->mo_det_use_count)
|
if ((st->mo_det_use_count) &&
|
||||||
&& ((st->rx[0] & protect_mask) != SCA3000_MEAS_MODE_MOT_DET))
|
((st->rx[0] & protect_mask) != SCA3000_MEAS_MODE_MOT_DET))
|
||||||
ret = sca3000_write_reg(st, SCA3000_REG_ADDR_MODE,
|
ret = sca3000_write_reg(st, SCA3000_REG_ADDR_MODE,
|
||||||
(st->rx[0] & ~protect_mask)
|
(st->rx[0] & ~protect_mask)
|
||||||
| SCA3000_MEAS_MODE_MOT_DET);
|
| SCA3000_MEAS_MODE_MOT_DET);
|
||||||
/* if on and should be off */
|
/* if on and should be off */
|
||||||
else if (!(st->mo_det_use_count)
|
else if (!(st->mo_det_use_count) &&
|
||||||
&& ((st->rx[0] & protect_mask) == SCA3000_MEAS_MODE_MOT_DET))
|
((st->rx[0] & protect_mask) == SCA3000_MEAS_MODE_MOT_DET))
|
||||||
ret = sca3000_write_reg(st, SCA3000_REG_ADDR_MODE,
|
ret = sca3000_write_reg(st, SCA3000_REG_ADDR_MODE,
|
||||||
(st->rx[0] & ~protect_mask));
|
(st->rx[0] & ~protect_mask));
|
||||||
exit_point:
|
exit_point:
|
||||||
|
Loading…
Reference in New Issue
Block a user