Reputation: 1
I am trying to follow the linux i2c slave documentation https://docs.kernel.org/i2c/slave-interface.html
when I attempt to compile the kernel module using make I get this error:
ERROR: modpost: "i2c_slave_register" [PATH] undefined!
ERROR: modpost: "i2c_slave_unregister" [PATH] undefined!
It seems like the code is identical to the EEPROM example written by Wolfram here but I am not sure what is wrong. Perhaps the API has changed and the documentation hasn't updated? I also can verify that the function stubs exist in linux/i2c.h
I have yet to see any resources online so if anyone here could provide support it would be greatly appreciated.
Upvotes: 0
Views: 63
Reputation: 1
Thanks @sawdust, i thought it was built with CONFIG_I2C_SLAVE enabled but the modification failed in the build system. The problem was resolved once CONFIG_I2C_SLAVE=y
was effectively set
Upvotes: 0