[RFC] drm/connector: Set the default callback function for drm_connector_funcs

Jani Nikula jani.nikula at linux.intel.com
Fri Jan 8 13:07:41 UTC 2021


On Fri, 08 Jan 2021, Thomas Zimmermann <tzimmermann at suse.de> wrote:
> Drivers cannot legally declare the funcs instance as static const. 
> Having static const allows for write protected pages.

This. I've done quite a bit of refactoring all over the place to be
ablet to move to the complete opposite direction. We want to keep all
callback structs static const.

If the idea here was good (on which I'm inclined to side with Thomas and
Daniel that it isn't), the way to go would be to add a small wrapper for
calling ->fill_modes(), with a different path for when it's NULL.

BR,
Jani.


-- 
Jani Nikula, Intel Open Source Graphics Center


More information about the dri-devel mailing list