I am getting error while compiling FXOS8700.c file

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I am getting error while compiling FXOS8700.c file

587 Views
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 Kudos
0 Replies