File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
drivers/hid/intel-thc-hid/intel-thc Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1540,7 +1540,7 @@ int thc_i2c_subip_regs_save(struct thc_device *dev)
15401540
15411541 for (int i = 0 ; i < ARRAY_SIZE (i2c_subip_regs ); i ++ ) {
15421542 ret = thc_i2c_subip_pio_read (dev , i2c_subip_regs [i ],
1543- & read_size , ( u32 * ) & dev -> i2c_subip_regs + i );
1543+ & read_size , & dev -> i2c_subip_regs [ i ] );
15441544 if (ret < 0 )
15451545 return ret ;
15461546 }
@@ -1563,7 +1563,7 @@ int thc_i2c_subip_regs_restore(struct thc_device *dev)
15631563
15641564 for (int i = 0 ; i < ARRAY_SIZE (i2c_subip_regs ); i ++ ) {
15651565 ret = thc_i2c_subip_pio_write (dev , i2c_subip_regs [i ],
1566- write_size , ( u32 * ) & dev -> i2c_subip_regs + i );
1566+ write_size , & dev -> i2c_subip_regs [ i ] );
15671567 if (ret < 0 )
15681568 return ret ;
15691569 }
You can’t perform that action at this time.
0 commit comments