Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b9668a1e authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "input: sensors: fix proximity raw data not correct issue"

parents fd29eefe 43dff42a
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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);