]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/video: fsl-diu-fb: fix some ioctls
authorTimur Tabi <timur@freescale.com>
Wed, 5 Oct 2011 00:36:44 +0000 (19:36 -0500)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Wed, 5 Oct 2011 01:06:55 +0000 (01:06 +0000)
commit3977ee78b03344e9b2af101e6ef40d2910ce2f2e
tree1a6b3d684a5d5b57f7151edd26a64d8e2c236055
parent86f2d8eb58bb244e02dc399d407ff50c3023c094
drivers/video: fsl-diu-fb: fix some ioctls

Use the _IOx macros to define the ioctl commands, instead of hard-coded
numbers.  Unfortunately, the original definitions of MFB_SET_PIXFMT and
MFB_GET_PIXFMT used the wrong value for the size, so these macros have
new values now.  To avoid breaking binary compatibility with older
applications, we retain support for the original values, but the driver
displays a warning message if they're used.

Also remove the FBIOGET_GWINFO and FBIOPUT_GWINFO ioctls.  FBIOPUT_GWINFO
was never implemented, and FBIOGET_GWINFO was never used by any
application.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/fsl-diu-fb.c
include/linux/fsl-diu-fb.h