File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1131,6 +1131,7 @@ static int adis16475_config_sync_mode(struct adis16475 *st)
1131
1131
struct device * dev = & st -> adis .spi -> dev ;
1132
1132
const struct adis16475_sync * sync ;
1133
1133
u32 sync_mode ;
1134
+ u16 val ;
1134
1135
1135
1136
/* default to internal clk */
1136
1137
st -> clk_freq = st -> info -> int_clk * 1000 ;
@@ -1200,8 +1201,9 @@ static int adis16475_config_sync_mode(struct adis16475 *st)
1200
1201
* I'm keeping this for simplicity and avoiding extra variables
1201
1202
* in chip_info.
1202
1203
*/
1204
+ val = ADIS16475_SYNC_MODE (sync -> sync_mode );
1203
1205
ret = __adis_update_bits (& st -> adis , ADIS16475_REG_MSG_CTRL ,
1204
- ADIS16475_SYNC_MODE_MASK , sync -> sync_mode );
1206
+ ADIS16475_SYNC_MODE_MASK , val );
1205
1207
if (ret )
1206
1208
return ret ;
1207
1209
You can’t perform that action at this time.
0 commit comments