On Tue, 5 Apr 2011 23:06:19 +0200, Marcin Ślusarz marcin.slusarz@gmail.com wrote:
2011/4/5 Chris Wilson chris@chris-wilson.co.uk:
Signed-off-by: Chris Wilson chris@chris-wilson.co.uk
drivers/gpu/drm/drm_modes.c | 52 +++++++++++++++++++++++++++++++++++++++++- 1 files changed, 50 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c index 25bf873..b3e07ac 100644 --- a/drivers/gpu/drm/drm_modes.c +++ b/drivers/gpu/drm/drm_modes.c @@ -853,6 +853,52 @@ void drm_mode_validate_clocks(struct drm_device *dev, } EXPORT_SYMBOL(drm_mode_validate_clocks);
+static const char *mode_status_to_string(enum drm_mode_status status) +{
- const char *strings[] = {
- static?
Yes, it should be. I wonder if the compiler is smart enough (smarter than me) for that to make no difference in this case...
- [MODE_OK] = "OK",
- [MODE_HSYNC] = "hsync out of range",
- [MODE_VSYNC] = "vsync out of range",
- [MODE_H_ILLEGAL] = "illegal horizontal timings",
- [MODE_V_ILLEGAL] = "illegal vertical timings",
- [MODE_BAD_WIDTH] = "requires an unsupported linepitch",
- [MODE_NOMODE] = "no mode with a maching name",
s/maching/matching/
Cut'n'paste typo. Another patch for include/drm/drm_crtc.h required!
Thanks, -Chris