@@ -706,8 +706,8 @@ static int mma8452_set_hp_filter_frequency(struct mma8452_data *data,
706706}
707707
708708static int __mma8452_write_raw (struct iio_dev * indio_dev ,
709- struct iio_chan_spec const * chan ,
710- int val , int val2 , long mask )
709+ struct iio_chan_spec const * chan ,
710+ int val , int val2 , long mask )
711711{
712712 struct mma8452_data * data = iio_priv (indio_dev );
713713 int i , j , ret ;
@@ -788,8 +788,9 @@ static int mma8452_write_raw(struct iio_dev *indio_dev,
788788}
789789
790790static int mma8452_get_event_regs (struct mma8452_data * data ,
791- const struct iio_chan_spec * chan , enum iio_event_direction dir ,
792- const struct mma8452_event_regs * * ev_reg )
791+ const struct iio_chan_spec * chan ,
792+ enum iio_event_direction dir ,
793+ const struct mma8452_event_regs * * ev_reg )
793794{
794795 if (!chan )
795796 return - EINVAL ;
@@ -818,11 +819,11 @@ static int mma8452_get_event_regs(struct mma8452_data *data,
818819}
819820
820821static int mma8452_read_event_value (struct iio_dev * indio_dev ,
821- const struct iio_chan_spec * chan ,
822- enum iio_event_type type ,
823- enum iio_event_direction dir ,
824- enum iio_event_info info ,
825- int * val , int * val2 )
822+ const struct iio_chan_spec * chan ,
823+ enum iio_event_type type ,
824+ enum iio_event_direction dir ,
825+ enum iio_event_info info ,
826+ int * val , int * val2 )
826827{
827828 struct mma8452_data * data = iio_priv (indio_dev );
828829 int ret , us , power_mode ;
@@ -881,11 +882,11 @@ static int mma8452_read_event_value(struct iio_dev *indio_dev,
881882}
882883
883884static int mma8452_write_event_value (struct iio_dev * indio_dev ,
884- const struct iio_chan_spec * chan ,
885- enum iio_event_type type ,
886- enum iio_event_direction dir ,
887- enum iio_event_info info ,
888- int val , int val2 )
885+ const struct iio_chan_spec * chan ,
886+ enum iio_event_type type ,
887+ enum iio_event_direction dir ,
888+ enum iio_event_info info ,
889+ int val , int val2 )
889890{
890891 struct mma8452_data * data = iio_priv (indio_dev );
891892 int ret , reg , steps ;
@@ -955,8 +956,7 @@ static int mma8452_read_event_config(struct iio_dev *indio_dev,
955956 case IIO_EV_DIR_FALLING :
956957 return mma8452_freefall_mode_enabled (data );
957958 case IIO_EV_DIR_RISING :
958- ret = i2c_smbus_read_byte_data (data -> client ,
959- ev_regs -> ev_cfg );
959+ ret = i2c_smbus_read_byte_data (data -> client , ev_regs -> ev_cfg );
960960 if (ret < 0 )
961961 return ret ;
962962
@@ -1193,7 +1193,7 @@ static const struct attribute_group mma8452_event_attribute_group = {
11931193
11941194static const struct iio_mount_matrix *
11951195mma8452_get_mount_matrix (const struct iio_dev * indio_dev ,
1196- const struct iio_chan_spec * chan )
1196+ const struct iio_chan_spec * chan )
11971197{
11981198 struct mma8452_data * data = iio_priv (indio_dev );
11991199
@@ -1516,8 +1516,9 @@ static int mma8452_reset(struct i2c_client *client)
15161516 * The following code will read the reset register, and check whether
15171517 * this reset works.
15181518 */
1519- i2c_smbus_write_byte_data (client , MMA8452_CTRL_REG2 ,
1520- MMA8452_CTRL_REG2_RST );
1519+ i2c_smbus_write_byte_data (client ,
1520+ MMA8452_CTRL_REG2 ,
1521+ MMA8452_CTRL_REG2_RST );
15211522
15221523 for (i = 0 ; i < 10 ; i ++ ) {
15231524 usleep_range (100 , 200 );
@@ -1647,17 +1648,17 @@ static int mma8452_probe(struct i2c_client *client)
16471648 dev_dbg (& client -> dev , "using interrupt line INT2\n" );
16481649 } else {
16491650 ret = i2c_smbus_write_byte_data (client ,
1650- MMA8452_CTRL_REG5 ,
1651- data -> chip_info -> all_events );
1651+ MMA8452_CTRL_REG5 ,
1652+ data -> chip_info -> all_events );
16521653 if (ret < 0 )
16531654 goto disable_regulators ;
16541655
16551656 dev_dbg (& client -> dev , "using interrupt line INT1\n" );
16561657 }
16571658
16581659 ret = i2c_smbus_write_byte_data (client ,
1659- MMA8452_CTRL_REG4 ,
1660- data -> chip_info -> enabled_events );
1660+ MMA8452_CTRL_REG4 ,
1661+ data -> chip_info -> enabled_events );
16611662 if (ret < 0 )
16621663 goto disable_regulators ;
16631664
0 commit comments