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 @@ -1289,6 +1289,7 @@ static int adis16475_config_sync_mode(struct adis16475 *st)
1289
1289
struct device * dev = & st -> adis .spi -> dev ;
1290
1290
const struct adis16475_sync * sync ;
1291
1291
u32 sync_mode ;
1292
+ u16 val ;
1292
1293
1293
1294
/* default to internal clk */
1294
1295
st -> clk_freq = st -> info -> int_clk * 1000 ;
@@ -1350,8 +1351,9 @@ static int adis16475_config_sync_mode(struct adis16475 *st)
1350
1351
* I'm keeping this for simplicity and avoiding extra variables
1351
1352
* in chip_info.
1352
1353
*/
1354
+ val = ADIS16475_SYNC_MODE (sync -> sync_mode );
1353
1355
ret = __adis_update_bits (& st -> adis , ADIS16475_REG_MSG_CTRL ,
1354
- ADIS16475_SYNC_MODE_MASK , sync -> sync_mode );
1356
+ ADIS16475_SYNC_MODE_MASK , val );
1355
1357
if (ret )
1356
1358
return ret ;
1357
1359
You can’t perform that action at this time.
0 commit comments