Myles Watson wrote:
I'd be interested to see the alternative code.
Fair enough. I have none,
It wasn't supposed to be a challenge. Just that I could tell we weren't understanding each other somehow. Pseudo code would have been fine.
but if it works as an object without ops then is any more code needed?
Ah. There's the point I've been missing in your argument. It works _with_ ops in the object. The ops get linked in to the device tree, so they get used by the correct device even though it can't be discovered.
Devices that can't be probed for can still have resources that need to be read and set and init functions to call.
Yes, but wouldn't that all need to be done by code with knowledge of the device (ie. just use static functions in the file) anyway?
Yes. The problem is how to call them if you don't have an ops structure somewhere.
Thanks, Myles