summaryrefslogtreecommitdiffstats
path: root/drivers/dma/coh901318_lli.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2015-02-02 19:13:57 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-02-03 09:09:22 +0100
commitf79d1548b0fea94f2ccf089e49480da5202918bc (patch)
tree60a7c69213b512092e341257d8f673b54275be62 /drivers/dma/coh901318_lli.c
parenteb2ed66fe56f30c6ea841ac11681a2f51049b221 (diff)
downloadblackbird-obmc-linux-f79d1548b0fea94f2ccf089e49480da5202918bc.tar.gz
blackbird-obmc-linux-f79d1548b0fea94f2ccf089e49480da5202918bc.zip
drm/modes: Print the mode status in human readable form
Currently when a mode is rejected the reason is printed as a raw number. Having to manually decode that to a enum drm_mode_status value is tiresome. Have the code do the decoding instead and print the result in a human readable format. Just having an array of strings indexed with the mode status doesn't work since the enum includes negative values. So we offset the status by +3 which makes all the indexes non-negative. Also add a bit of paranoia into the code to catch out of bounds accesses in case someone adds more enum values but forgets to update the code. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/dma/coh901318_lli.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud