Commit b307f495 authored by Lorenzo Bianconi's avatar Lorenzo Bianconi Committed by Jonathan Cameron
Browse files

iio: imu: st_lsm6dsx: fix checkpatch warning



Fix following checkpatch warnings:

CHECK: Alignment should match open parenthesis
+static int st_lsm6dsx_read_event(struct iio_dev *iio_dev,
+				   const struct iio_chan_spec *chan,

CHECK: Alignment should match open parenthesis
+static int st_lsm6dsx_write_event(struct iio_dev *iio_dev,
+				    const struct iio_chan_spec *chan,

CHECK: Alignment should match open parenthesis
+static int st_lsm6dsx_read_event_config(struct iio_dev *iio_dev,
+					  const struct iio_chan_spec *chan,

CHECK: Alignment should match open parenthesis
+static int st_lsm6dsx_write_event_config(struct iio_dev *iio_dev,
+					   const struct iio_chan_spec *chan,

WARNING: line over 80 characters
+	if (dev->of_node && of_property_read_bool(dev->of_node, "wakeup-source"))

Signed-off-by: default avatarLorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent d278d447
Loading
Loading
Loading
Loading
+19 −16
Original line number Diff line number Diff line
@@ -1538,7 +1538,8 @@ static int st_lsm6dsx_read_event(struct iio_dev *iio_dev,
	return IIO_VAL_INT;
}

static int st_lsm6dsx_write_event(struct iio_dev *iio_dev,
static int
st_lsm6dsx_write_event(struct iio_dev *iio_dev,
		       const struct iio_chan_spec *chan,
		       enum iio_event_type type,
		       enum iio_event_direction dir,
@@ -1569,7 +1570,8 @@ static int st_lsm6dsx_write_event(struct iio_dev *iio_dev,
	return 0;
}

static int st_lsm6dsx_read_event_config(struct iio_dev *iio_dev,
static int
st_lsm6dsx_read_event_config(struct iio_dev *iio_dev,
			     const struct iio_chan_spec *chan,
			     enum iio_event_type type,
			     enum iio_event_direction dir)
@@ -1583,11 +1585,11 @@ static int st_lsm6dsx_read_event_config(struct iio_dev *iio_dev,
	return !!(hw->enable_event & BIT(chan->channel2));
}

static int st_lsm6dsx_write_event_config(struct iio_dev *iio_dev,
static int
st_lsm6dsx_write_event_config(struct iio_dev *iio_dev,
			      const struct iio_chan_spec *chan,
			      enum iio_event_type type,
					   enum iio_event_direction dir,
					   int state)
			      enum iio_event_direction dir, int state)
{
	struct st_lsm6dsx_sensor *sensor = iio_priv(iio_dev);
	struct st_lsm6dsx_hw *hw = sensor->hw;
@@ -2160,7 +2162,8 @@ int st_lsm6dsx_probe(struct device *dev, int irq, int hw_id,
			return err;
	}

	if (dev->of_node && of_property_read_bool(dev->of_node, "wakeup-source"))
	if (dev->of_node &&
	    of_property_read_bool(dev->of_node, "wakeup-source"))
		device_init_wakeup(dev, true);

	return 0;