mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
phonesdk:use irq instead of polling for mpu3050
This commit is contained in:
@@ -2129,7 +2129,7 @@ static struct i2c_board_info __initdata board_i2c0_devices[] = {
|
||||
.type = "kxtf9",
|
||||
.addr = 0x0f,
|
||||
.flags = 0,
|
||||
//.irq = RK29_PIN6_PC4,
|
||||
.irq = RK29_PIN6_PC4,
|
||||
.platform_data = &inv_mpu_kxtf9_data,
|
||||
},
|
||||
#endif
|
||||
@@ -2138,7 +2138,7 @@ static struct i2c_board_info __initdata board_i2c0_devices[] = {
|
||||
.type = "ak8975",
|
||||
.addr = 0x0d,
|
||||
.flags = 0,
|
||||
//.irq = RK29_PIN6_PC5,
|
||||
.irq = RK29_PIN6_PC5,
|
||||
.platform_data = &inv_mpu_ak8975_data,
|
||||
},
|
||||
#endif
|
||||
|
||||
@@ -943,7 +943,7 @@ int inv_mpu_register_slave(struct module *slave_module,
|
||||
}
|
||||
|
||||
slave_pdata->address = slave_client->addr;
|
||||
slave_pdata->irq = slave_client->irq;
|
||||
slave_pdata->irq = gpio_to_irq(slave_client->irq);
|
||||
slave_pdata->adapt_num = i2c_adapter_id(slave_client->adapter);
|
||||
|
||||
dev_info(&slave_client->adapter->dev,
|
||||
|
||||
Reference in New Issue
Block a user