-
|
I am having some issues using a driver and I don't know what I am doing wrong. The driver in question (drivers/eeprom/eeprom_at2x.c) is defined like this: The associated device tree for my board is as follows: This driver can take 2 variants at24 and at25. I am using at24 so I tried the following: This compiles okay but the returned pointer is always NULL I also tried this: This gives me the following linking error: Looks like some of the generated code is not right, presumably I am using the wrong macro to get the device binding? I also tried the following: None of which worked. Is this a bug or am I just doing things wrong? Any help will be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
I found the problem. I had to make the following change to the device tree: After that I could get the driver with: |
Beta Was this translation helpful? Give feedback.
I found the problem. I had to make the following change to the device tree:
After that I could get the driver with: