4 ms·
I see how this is an abstraction of register memory. but how does it help against a constantly moving kernel? Also, wouldn't this make an otherwise simple code
by panpanna 6y ago
I see how this is an abstraction of register memory. but how does it help against a constantly moving kernel?
Also, wouldn't this make an otherwise simple code much harder to read and understand?
- pjc50 6y agoIt's not the kernel that's constantly moving, it's the hardware. The idea of regmaps is that when you get a device revision B, rather than having to sprinkle "if(revision == ...)" all over your code you just look it up in a table.