Embedded_linux [SOLVED]: What is use of struct i2c_device_id if we are already using struct of_device_id?

Embedded_linux [SOLVED]: What is use of struct i2c_device_id if we are already using struct of_device_id?

Home Forums Embedded Linux Embedded_linux [SOLVED]: What is use of struct i2c_device_id if we are already using struct of_device_id?

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #4344

    Anonymous

    QuestionQuestion

    I was trying to understand a codec driver code on Linux kernel 4.4. The codec is connected to sound card using i2c bus and the codec driver code is written as I2C client. Client’s struct i2c_driver contains both i2c_device_id information and of_device_id information.

    Now as per my understanding client’s probe function will be called when compatible string of struct of_device_id matches with compatible string of device node information. Then what is the use of struct i2c_device_id?

    NOTE: Codec driver is using device tree.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.