How do you interface with the Linux I2C driver from kernel space? For example, if I had LEDs connected to a GPIO expander on the I2C bus, how would I blink them twice before going down for reset from machine_reset()?
Essentially, I believe I need to call the functions
i2c_smbus_read_byte(), etc. But these functions require I2C client data that I do not understand how to supply.