summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorTimur Tabi <timur@freescale.com>2011-09-28 23:19:51 +0200
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2011-10-05 03:10:12 +0200
commit2572df91d5528dfc639e52b7caaed98e3dec1e18 (patch)
tree24a2fab042da8c3de4434d5bf1eea999402e3417 /mm
parentdrivers/video: fsl-diu-fb: add several new video modes (diff)
downloadlinux-2572df91d5528dfc639e52b7caaed98e3dec1e18.tar.xz
linux-2572df91d5528dfc639e52b7caaed98e3dec1e18.zip
drivers/video: fsl-diu-fb: use an enum for the AOI index
Each of the five AOIs created by the DIU driver has a special purpose, and they're not treated equally. It makes sense to identify them with an enum instead of a hard-coded number. Since the 'index' is now an enum, it can only contain allowed values, so there's no need to check for an invalid value. This simplifies some other code, such as fsl_diu_disable_panel(), which no longer needs to return an error code. Signed-off-by: Timur Tabi <timur@freescale.com> Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions