3 ms·
There's no string matching that I can see in the linked article?
by akx 6y ago
There's no string matching that I can see in the linked article?
- londons_explore 6y ago" .name = "dw-mipi-dsi"," Looks like a string in the structure to me. And when you have an array of such structures, you end up scanning through them checking for the name you need.
- akx 6y agoThat's the name of the regmap. Clicking through to the definition of the structure says it's optional and thus there for descriptive purposes. * * @name: Optional name of the regmap. Useful when a device has multiple * register regions.
- cesarb 6y agoLook at the usage example a couple of lines below; it's passing a pointer to that structure. There's no scanning necessary, it already knows where the structure is.