Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
panpanna
on May 28, 2020
|
parent
|
context
|
favorite
| on:
Using regmaps to make Linux drivers more generic
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
on May 28, 2020
[–]
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.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Also, wouldn't this make an otherwise simple code much harder to read and understand?