When add spi support, introduce a new bug that
i2c intrerupt pin assignment after request_irq.
Change-Id: Id41a953c8c7ea8a94a584c584ee012025a4a6921
Signed-off-by: Zhangbin Tong <zebulun.tong@rock-chips.com>
st->plat_data =
*(struct mpu_platform_data *)dev_get_platdata(&client->dev);
+ st->irq = client->irq;
st->plat_read = inv_i2c_read;
st->plat_single_write = inv_i2c_single_write;
st->secondary_read = inv_i2c_secondary_read;
pr_err("configure ring buffer fail\n");
goto out_free;
}
- st->irq = client->irq;
st->dev = &client->dev;
result = inv_mpu_probe_trigger(indio_dev);
if (result) {