Out of tree driver for sensor

Hi, 

I am trying to develop out of tree driver for LPS22HB1(this driver is already present in zephyr, so i renamed  and using all related files and setting). I have also downloaded and build the example-application successfully from https://github.com/zephyrproject-rtos/example-application.

I added the driver and binding file of LPS22HB1 by taking reference from LPS22HB sensor but getting below errors-

My Kconfig file looks like-

menuconfig LPS22HB1
bool "LPS22HB1 pressure and temperature"
default y
depends on DT_HAS_ST_LPS22HB_PRESS_ENABLED
select I2C
help
Enable driver for LPS22HB I2C-based pressure and temperature
sensor.

config LPS22HB1_SAMPLING_RATE
int "Output data rate"
default 25
depends on LPS22HB1
help
Sensor output data rate expressed in samples per second.
Data rates supported by the chip are 1, 10, 25, 50, 75.

and prj.config is-

CONFIG_SENSOR=y
#CONFIG_EXAMPLESENSOR=y
CONFIG_I2C=y
CONFIG_LPS22HB1=y

Please help me, what am i doing wrong.

Thanks.

Related