News for hackers. Stuff that matters.
Re:Using regmaps to make Linux drivers more generic by londons_explore on Thursday May 28, 2020 @09:36AM (#23337054)
" .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.

Re:Using regmaps to make Linux drivers more generic by akx on Thursday May 28, 2020 @09:43AM (#23337104)
That'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.
Re:Using regmaps to make Linux drivers more generic by cesarb on Thursday May 28, 2020 @09:47AM (#23337157)
Look 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.