mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 02:21:16 +00:00
Merge "input: sensors: fix proximity raw data not correct issue"
This commit is contained in:
commit
b9668a1e88
1 changed files with 4 additions and 1 deletions
|
@ -1623,7 +1623,10 @@ static ssize_t apds993x_show_pdata(struct device *dev,
|
|||
int pdata;
|
||||
|
||||
mutex_lock(&data->update_lock);
|
||||
pdata = i2c_smbus_read_word_data(client, CMD_WORD|APDS993X_PDATAL_REG);
|
||||
pdata = i2c_smbus_read_word_data(client,
|
||||
CMD_WORD|APDS993X_PDATAL_REG);
|
||||
pdata |= i2c_smbus_read_word_data(client,
|
||||
CMD_WORD|APDS993X_PDATAH_REG) << 8;
|
||||
mutex_unlock(&data->update_lock);
|
||||
|
||||
return sprintf(buf, "%d\n", pdata);
|
||||
|
|
Loading…
Reference in a new issue