[PATCH v3 05/15] drm: WARN when calling drm_format_info() for an unsupported format

2016-06-09 Thread Laurent Pinchart
The format helpers have historically treated unsupported formats as part of the default case, returning values that are likely wrong. We can't change this behaviour now without risking breaking drivers in difficult to detect ways, but we can WARN on unsupported formats to catch faulty callers. The

[PATCH v3 05/15] drm: WARN when calling drm_format_info() for an unsupported format

2016-06-09 Thread Laurent Pinchart
The format helpers have historically treated unsupported formats as part of the default case, returning values that are likely wrong. We can't change this behaviour now without risking breaking drivers in difficult to detect ways, but we can WARN on unsupported formats to catch faulty callers. The