OMAP: DSS2: OMAPFB: Fix sysfs mirror input check
commit5cb33e2166067e1fff7ebc3b849ec70a6fd7ec1d
authorJani Nikula <ext-jani.1.nikula@nokia.com>
Tue, 1 Jun 2010 15:08:18 +0000 (1 18:08 +0300)
committerTomi Valkeinen <tomi.valkeinen@nokia.com>
Thu, 5 Aug 2010 13:52:10 +0000 (5 16:52 +0300)
tree6531963d207d2adc5637f855243d0ad2c39c20f4
parent7f8b183059edc6c74654301431d520a91539e45f
OMAP: DSS2: OMAPFB: Fix sysfs mirror input check

Using bool silently converted input to 0 or 1, making the range check
useless. Use unsigned long instead, and convert to bool later. Found by
Coverity.

Signed-off-by: Jani Nikula <ext-jani.1.nikula@nokia.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
drivers/video/omap2/omapfb/omapfb-sysfs.c