Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d7b79519 authored by Murilo Opsfelder Araujo's avatar Murilo Opsfelder Araujo Committed by Jonathan Cameron
Browse files

staging: iio: accel: Add blank lines between declarations and code



This patch adds missing blank lines between declarations and code and
fixes lines starting by spaces, satisfying checkpatch.pl.

Signed-off-by: default avatarMurilo Opsfelder Araujo <mopsfelder@gmail.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 2f29c168
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -111,6 +111,7 @@ static int adis16201_write_raw(struct iio_dev *indio_dev,
	int bits;
	s16 val16;
	u8 addr;

	switch (mask) {
	case IIO_CHAN_INFO_CALIBBIAS:
		switch (chan->type) {
+2 −0
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@ static int adis16203_write_raw(struct iio_dev *indio_dev,
	struct adis *st = iio_priv(indio_dev);
	/* currently only one writable parameter which keeps this simple */
	u8 addr = adis16203_addresses[chan->scan_index];

	return adis_write_reg_16(st, addr, val & 0x3FFF);
}

@@ -50,6 +51,7 @@ static int adis16203_read_raw(struct iio_dev *indio_dev,
	int bits;
	u8 addr;
	s16 val16;

	switch (mask) {
	case IIO_CHAN_INFO_RAW:
		return adis_single_conversion(indio_dev, chan,
+1 −0
Original line number Diff line number Diff line
@@ -119,6 +119,7 @@ static int adis16204_write_raw(struct iio_dev *indio_dev,
	int bits;
	s16 val16;
	u8 addr;

	switch (mask) {
	case IIO_CHAN_INFO_CALIBBIAS:
		switch (chan->type) {
+1 −0
Original line number Diff line number Diff line
@@ -44,6 +44,7 @@ static int adis16209_write_raw(struct iio_dev *indio_dev,
	int bits;
	s16 val16;
	u8 addr;

	switch (mask) {
	case IIO_CHAN_INFO_CALIBBIAS:
		switch (chan->type) {
+1 −0
Original line number Diff line number Diff line
@@ -163,6 +163,7 @@ static int adis16240_write_raw(struct iio_dev *indio_dev,
	int bits = 10;
	s16 val16;
	u8 addr;

	switch (mask) {
	case IIO_CHAN_INFO_CALIBBIAS:
		val16 = val & ((1 << bits) - 1);
Loading