News for hackers. Stuff that matters.
Re:Using regmaps to make Linux drivers more generic by panpanna on Thursday May 28, 2020 @03:50AM (#23334630)
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?

Re:Using regmaps to make Linux drivers more generic by pjc50 on Thursday May 28, 2020 @09:58AM (#23337276)
It'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.