Carl-Daniel Hailfinger wrote:
OK, that one is indeed valid. However, I'd like to keep the number of dev_find_*_device calls as low as possible without compromising code readability. For example, if you want to establish a link between two devices, calling the function with device pointers for both devices would make the code readable and stuff would still work.
Hmm... and we can describe those links between devices in the dts.. I think we tried that for HT once.
So we'd have a construct of "devices" and a construct of "links" which are connections between devices.
links would have enable, disable, reset(, probe?) as methods?