How do I write a new Linux driver for an i2c device?
-
23-08-2019 - |
Question
I have a usb device with some i2c control functions and I would like to add a userspace API for twiddling those bits. How do I add i2c support to my device's existing driver?
Solution
The excellent Linux Device Drivers book covers a lot of what it takes to write a Linux device driver, including USB specifics (see chapter 13).
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow