V4L/DVB (4979): Fixes compilation when CONFIG_V4L1_COMPAT is not selected
authorDwaine Garden <DwaineGarden@rogers.com>
Wed, 27 Dec 2006 12:23:28 +0000 (10:23 -0200)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 27 Dec 2006 16:19:21 +0000 (14:19 -0200)
commited00b41dc8bc286682d31ad64060ccc70513e90b
tree1752888ba5267d342f4b8c2fa29e86c0e569c307
parent5ef35be42dfaa155e02718a9bd34cc341f327883
V4L/DVB (4979): Fixes compilation when CONFIG_V4L1_COMPAT is not selected

- SYSFS: Replaced all to_video_device(cd), video_device_create_file,
  video_device_remove_file and add the proper checks at create_file
- Converted old norm values to V4L2 ones.
- Robustness on sysfs hue/contrast/saturation queries.
  Additional check in order to return 0 if the driver is not opened.
- Whitespace cleanups in usbvision-cards.c

This patch merges two fixes by Thierry MERLE and Mauro Chehab, and adds
additional checks.

Signed-off-by: Dwaine Garden<DwaineGarden@rogers.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/usbvision/usbvision-cards.c
drivers/media/video/usbvision/usbvision-video.c