mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
[xjh]update mma8452
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user