iio:accel:bma180: Fix use of true when should be iio_shared_by enum
Jonathan Cameron
maintainerPATCH 1/1 iio:accel:bma180: Fix use of true when should be iio_shared_by enum
From: Jonathan Cameron <[email protected]>
Given a value of 1 corresponds to IIO_SHARE_BY_TYPE I have replaced it with that. Should cause no functional change.
--- drivers/iio/accel/bma180.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/accel/bma180.c +1 -1
@@ -673,7 +673,7 @@ static const struct iio_chan_spec_ext_info bma023_ext_info[] = { };static const struct iio_chan_spec_ext_info bma180_ext_info[] = { -IIO_ENUM ("power_mode" , true, &bma180_power_mode_enum), +IIO_ENUM ("power_mode" ,IIO_SHARED_BY_TYPE , &bma180_power_mode_enum),IIO_ENUM_AVAILABLE ("power_mode" , &bma180_power_mode_enum),IIO_MOUNT_MATRIX (IIO_SHARED_BY_DIR , bma180_accel_get_mount_matrix), { }
Signature · 1 line
2.28.0
Quoted 9 lines · Jonathan Cameron
From: Jonathan Cameron <[email protected]>
Given a value of 1 corresponds to
IIO_SHARE_BY_TYPEI have replaced it with that. Should cause no functional change.Signed-off-by Jonathan Cameron <[email protected]>Cc Oleksandr Kravchenko <[email protected]>Cc Peter Meerwald <[email protected]>Cc Jonathan Bakker <[email protected]>
Quoted 17 lines
--- drivers/iio/accel/bma180.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/iio/accel/bma180.c +1
-1@@ -673,7 +673,7 @@ static const struct iio_chan_spec_ext_info bma023_ext_info[] = { };static const struct iio_chan_spec_ext_info bma180_ext_info[] = { -IIO_ENUM ("power_mode" , true, &bma180_power_mode_enum), +IIO_ENUM ("power_mode" ,IIO_SHARED_BY_TYPE , &bma180_power_mode_enum),IIO_ENUM_AVAILABLE ("power_mode" , &bma180_power_mode_enum),IIO_MOUNT_MATRIX (IIO_SHARED_BY_DIR , bma180_accel_get_mount_matrix), { }
Jonathan Cameron
maintainerQuoted 6 lines · On Fri, 18 Sep 2020 15:36:58 +0200 Lars-Peter Clausen <[email protected]> wrote:
Quoted 5 lines · Jonathan Cameron
From: Jonathan Cameron <[email protected]>
Given a value of 1 corresponds to
IIO_SHARE_BY_TYPEI have replaced it with that. Should cause no functional change.
Quoted 6 lines
Quoted 4 lines
Signed-off-by Jonathan Cameron <[email protected]>Cc Oleksandr Kravchenko <[email protected]>Cc Peter Meerwald <[email protected]>Cc Jonathan Bakker <[email protected]>Reviewed-by Lars-Peter Clausen <[email protected]>
Thanks. Applied to the togreg branch of iio.git.
I haven't marked it for stable because it has not material affect. Not a problem if it gets picked up anyway of course!
Thanks,
Jonathan
Quoted 21 lines
Quoted 19 lines
--- drivers/iio/accel/bma180.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/iio/accel/bma180.c +1
-1@@ -673,7 +673,7 @@ static const struct iio_chan_spec_ext_info bma023_ext_info[] = { };static const struct iio_chan_spec_ext_info bma180_ext_info[] = { -IIO_ENUM ("power_mode" , true, &bma180_power_mode_enum), +IIO_ENUM ("power_mode" ,IIO_SHARED_BY_TYPE , &bma180_power_mode_enum),IIO_ENUM_AVAILABLE ("power_mode" , &bma180_power_mode_enum),IIO_MOUNT_MATRIX (IIO_SHARED_BY_DIR , bma180_accel_get_mount_matrix), { }
Quoted 6 lines · Jonathan Cameron
From: Jonathan Cameron <[email protected]>
Given a value of 1 corresponds to
IIO_SHARE_BY_TYPEI have replaced it with that. Should cause no functional change.
Quoted 24 lines
Signed-off-by Jonathan Cameron <[email protected]>Cc Oleksandr Kravchenko <[email protected]>Cc Peter Meerwald <[email protected]>Cc Jonathan Bakker <[email protected]>--- drivers/iio/accel/bma180.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/iio/accel/bma180.c +1
-2@@ -673,7 +673,7 @@ static const struct iio_chan_spec_ext_info bma023_ext_info[] = { };static const struct iio_chan_spec_ext_info bma180_ext_info[] = { -IIO_ENUM ("power_mode" , true, &bma180_power_mode_enum), +IIO_ENUM ("power_mode" ,IIO_SHARED_BY_TYPE , &bma180_power_mode_enum),IIO_ENUM_AVAILABLE ("power_mode" , &bma180_power_mode_enum),IIO_MOUNT_MATRIX (IIO_SHARED_BY_DIR , bma180_accel_get_mount_matrix), { } --2.28.0