I am getting error while compiling FXOS8700.c file

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

I am getting error while compiling FXOS8700.c file

993 次查看
venkatashuressh
Contributor I

I am using WANDBOARD..... I am connecting FXOS8700 sensor to this board through I2C communication..

IN FXOS8700_probe function


client_id = i2c_smbus_read_byte_data(client, FXOS8700_WHO_AM_I);


if (client_id !=  FXOS8700_DEVICE_ID ) {


dev_err(&client->dev,"read chip ID 0x%x is not equal to 0x%x \n",result, FXOS8700_DEVICE_ID);


result = -EINVAL;


goto err_out;


}


    it is giving error like

fxos8700 1-001f:readchip ID 0X1 IS NOT EQUAL TO 0XC7
fxos8700: probe of 1-001f failed with error -22
please help me to solve this..............
0 项奖励
回复
0 回复数