I am using mcp3021.c file for Microchip MCP3021 IC. My module's init
and exit
functions are replaced with module_i2c_driver(mcp3021_driver)
, But I don't see the driver register print in my Kernel log when I ran the code. Can anybody please help me with this ?
0
votes
2 Answers
0
votes
0
votes
You have verify are few things to make it work,
- Ensure that I2C device is properly mounted in hardware.
- Confirm that your device is not in reset state.
- Ensure that in your device tree you are using the appropriate
I2C bus
and driver id is properly configured. - Check your
kernel configuration(.config)
that your driver is enabled.
I2C Probe will be called only if above all conditions are met.