mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 07:03:37 +02:00
[xjh]update mma8452
This commit is contained in:
parent
dd9513e93e
commit
9376ee5a1b
|
|
@ -118,7 +118,7 @@ static char mma845x_read_reg(struct i2c_client *client,int addr)
|
|||
int ret = 0;
|
||||
|
||||
tmp = addr;
|
||||
ret = mma8452_tx_data(client, &tmp, 1);
|
||||
// ret = mma8452_tx_data(client, &tmp, 1);
|
||||
ret = mma8452_rx_data(client, &tmp, 1);
|
||||
return tmp;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user