Search code examples
linuxlinux-device-driveri2c

How do I write a new Linux driver for an i2c device?


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).