Hello, I'm using i.MX8 yocto build and able to select supported MISC I2C drivers as the Kernel driver. Actually I2C driver located on the kernel/drivers/misc/bh1770glc.c and I can see some sysfs attributes to configure and cooperate with physical I2C slave.
My question is how am I able to write my own C application to access the sysfs control attribute from struct attribute_group list? Can someone help my to search some C API or examples of how to control I2C devices as the Kernel driver via sysfs attributes for example?
Thanks in advance, Anton!
Solved! Go to Solution.