bronco/sensor: fix capsensor diff reg error
1.SX937X_DIFF_PHx is 4 bytes interval,not 12 bytes. 2.sx937x_multi.c Change-Id: I0bbd538bfed8d951c1d8cb08cab1525a7e305e47 Signed-off-by: weimh1@motorola.com <weimh1@motorola.com> Reviewed-on: https://gerrit.mot.com/2416957 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lijun Chen <chenlj2@motorola.com> Reviewed-by: Hujun Liao <liaohj@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
1 parent
9cbd3130c8
commit
821a0568dd
1 file changed
+1
-1
@@ -708,7 +708,7 @@ static ssize_t sx937x_fac_raw_show(struct device *dev,
|
||||
|
||||
LOG_INFO("%s sx937x_fac_raw_show\n", this->hw->dbg_name);
|
||||
for ( i = 0; i < MAX_CHANNEL_NUMBER; i++) {
|
||||
read_ret=sx937x_i2c_read_16bit(this->bus,reg_addr+0xc*i,&temp_val);
|
||||
read_ret=sx937x_i2c_read_16bit(this->bus,reg_addr+0x4*i,&temp_val);
|
||||
if(read_ret<0){
|
||||
LOG_INFO("failed to read reg data 0x%x", reg_addr);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user