[PATCH v5 04/13] drm: WARN when calling drm_format_info() for an unsupported format

2016-10-18 Thread Eric Engestrom
On Tuesday, 2016-10-18 01:41:12 +0300, Laurent Pinchart wrote: > 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 way

[PATCH v5 04/13] drm: WARN when calling drm_format_info() for an unsupported format

2016-10-18 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