AnsweredAssumed Answered

I am getting error while compiling FXOS8700.c file

Question asked by venkata shuressh on Sep 26, 2014

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..............

Outcomes