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 @@ -1539,7 +1539,7 @@ int thc_i2c_subip_regs_save(struct thc_device *dev)
15391539
15401540 for (int i = 0 ; i < ARRAY_SIZE (i2c_subip_regs ); i ++ ) {
15411541 ret = thc_i2c_subip_pio_read (dev , i2c_subip_regs [i ],
1542- & read_size , ( u32 * ) & dev -> i2c_subip_regs + i );
1542+ & read_size , & dev -> i2c_subip_regs [ i ] );
15431543 if (ret < 0 )
15441544 return ret ;
15451545 }
@@ -1562,7 +1562,7 @@ int thc_i2c_subip_regs_restore(struct thc_device *dev)
15621562
15631563 for (int i = 0 ; i < ARRAY_SIZE (i2c_subip_regs ); i ++ ) {
15641564 ret = thc_i2c_subip_pio_write (dev , i2c_subip_regs [i ],
1565- write_size , ( u32 * ) & dev -> i2c_subip_regs + i );
1565+ write_size , & dev -> i2c_subip_regs [ i ] );
15661566 if (ret < 0 )
15671567 return ret ;
15681568 }
You can’t perform that action at this time.
0 commit comments