* [PATCH] iio: imu: mpu6050: remove trailing whitespaces
@ 2016-02-18 5:58 Matt Ranostay
2016-02-21 21:12 ` Jonathan Cameron
0 siblings, 1 reply; 2+ messages in thread
From: Matt Ranostay @ 2016-02-18 5:58 UTC (permalink / raw)
To: adriana.reus, jic23; +Cc: linux-iio, Matt Ranostay
removed several trailing whitespaces before assignment operations
Signed-off-by: Matt Ranostay <matt.ranostay@intel.com>
---
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c b/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
index 225860016fed..cbc8c74d4692 100644
--- a/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
+++ b/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
@@ -244,7 +244,7 @@ static int inv_mpu6050_read_raw(struct iio_dev *indio_dev,
if (result)
goto error_read_raw;
}
- ret = inv_mpu6050_sensor_show(st, st->reg->raw_gyro,
+ ret = inv_mpu6050_sensor_show(st, st->reg->raw_gyro,
chan->channel2, val);
if (!st->chip_config.gyro_fifo_enable ||
!st->chip_config.enable) {
@@ -567,7 +567,7 @@ static int inv_mpu6050_validate_trigger(struct iio_dev *indio_dev,
.type = _type, \
.modified = 1, \
.channel2 = _channel2, \
- .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE), \
+ .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE), \
.info_mask_separate = BIT(IIO_CHAN_INFO_RAW), \
.scan_index = _index, \
.scan_type = { \
@@ -587,7 +587,7 @@ static const struct iio_chan_spec inv_mpu_channels[] = {
*/
{
.type = IIO_TEMP,
- .info_mask_separate = BIT(IIO_CHAN_INFO_RAW)
+ .info_mask_separate = BIT(IIO_CHAN_INFO_RAW)
| BIT(IIO_CHAN_INFO_OFFSET)
| BIT(IIO_CHAN_INFO_SCALE),
.scan_index = -1,
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] iio: imu: mpu6050: remove trailing whitespaces
2016-02-18 5:58 [PATCH] iio: imu: mpu6050: remove trailing whitespaces Matt Ranostay
@ 2016-02-21 21:12 ` Jonathan Cameron
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2016-02-21 21:12 UTC (permalink / raw)
To: Matt Ranostay, adriana.reus; +Cc: linux-iio
On 18/02/16 05:58, Matt Ranostay wrote:
> removed several trailing whitespaces before assignment operations
>
> Signed-off-by: Matt Ranostay <matt.ranostay@intel.com>
Applied with some fuzz from other recent patches on this driver.
Jonathan
> ---
> drivers/iio/imu/inv_mpu6050/inv_mpu_core.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c b/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
> index 225860016fed..cbc8c74d4692 100644
> --- a/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
> +++ b/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
> @@ -244,7 +244,7 @@ static int inv_mpu6050_read_raw(struct iio_dev *indio_dev,
> if (result)
> goto error_read_raw;
> }
> - ret = inv_mpu6050_sensor_show(st, st->reg->raw_gyro,
> + ret = inv_mpu6050_sensor_show(st, st->reg->raw_gyro,
> chan->channel2, val);
> if (!st->chip_config.gyro_fifo_enable ||
> !st->chip_config.enable) {
> @@ -567,7 +567,7 @@ static int inv_mpu6050_validate_trigger(struct iio_dev *indio_dev,
> .type = _type, \
> .modified = 1, \
> .channel2 = _channel2, \
> - .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE), \
> + .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE), \
> .info_mask_separate = BIT(IIO_CHAN_INFO_RAW), \
> .scan_index = _index, \
> .scan_type = { \
> @@ -587,7 +587,7 @@ static const struct iio_chan_spec inv_mpu_channels[] = {
> */
> {
> .type = IIO_TEMP,
> - .info_mask_separate = BIT(IIO_CHAN_INFO_RAW)
> + .info_mask_separate = BIT(IIO_CHAN_INFO_RAW)
> | BIT(IIO_CHAN_INFO_OFFSET)
> | BIT(IIO_CHAN_INFO_SCALE),
> .scan_index = -1,
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-21 21:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-18 5:58 [PATCH] iio: imu: mpu6050: remove trailing whitespaces Matt Ranostay
2016-02-21 21:12 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).