ipq807x: Fixed the i2c register and data

Change-Id: Ib0f63da02d80430893a34b4f45a303c6cb307558
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
This commit is contained in:
Sham Muthayyan 2017-12-11 17:43:34 +05:30 committed by Gerrit - the friendly Code Review server
parent d6bee58b4f
commit 3e1a092e67

View file

@ -548,8 +548,7 @@ int create_data_byte(uint16_t *data, uchar *buffer, int len)
if (len == 0) {
return idx;
} else {
*data = (*data << 8);
*data |= QUP_I2C_DATA(buffer[idx]);
*data |= (QUP_I2C_DATA(buffer[idx]) << 8);
idx++;
len--;
}