Hy guys, I would like to connect HC-SR04 sensor to my CM3 board (I want use character device as exercise, nor Python library or similar)
My OS: Raspbian GNU/Linux 8 (jessie)
My old HC-SR04 driver is not working (maybe changed something in kernel/Debian), I have already enabled device-tree through raspi-config.
I've found several kernel drivers for Raspberry, but I can't compile due it's giving me some errors ( error: unknown field ‘class_attrs’ specified in initializer).
Source is https://github.com/johannesthoma/linux-hc-sro4 but using other hc-sr04 kernel driver for Raspberry I still get similar errors.
Any working driver?