aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/usbvision/usbvision-video.c
diff options
context:
space:
mode:
authorThierry MERLE <thierry.merle@free.fr>2007-04-14 15:23:49 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-04-27 14:45:37 -0400
commit1ff16c2091a557f8080eb62c087465a87e4330e9 (patch)
tree8ef85a69b53ea0f3c45118d1b24005b297338d3f /drivers/media/video/usbvision/usbvision-video.c
parentd3df9c4fa13db14cb9f6cd4cf31bd2a61c0e9911 (diff)
V4L/DVB (5522): Usbvision: i2c function cleanups
usbvision-i2c function renamings, code cleanup Signed-off-by: Thierry MERLE <thierry.merle@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/usbvision/usbvision-video.c')
-rw-r--r--drivers/media/video/usbvision/usbvision-video.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/video/usbvision/usbvision-video.c b/drivers/media/video/usbvision/usbvision-video.c
index 5fb89e407f08..04131cebf395 100644
--- a/drivers/media/video/usbvision/usbvision-video.c
+++ b/drivers/media/video/usbvision/usbvision-video.c
@@ -410,7 +410,7 @@ static int usbvision_v4l2_open(struct inode *inode, struct file *file)
410 down(&usbvision->lock); 410 down(&usbvision->lock);
411 if (usbvision->power == 0) { 411 if (usbvision->power == 0) {
412 usbvision_power_on(usbvision); 412 usbvision_power_on(usbvision);
413 usbvision_init_i2c(usbvision); 413 usbvision_i2c_register(usbvision);
414 } 414 }
415 415
416 /* Send init sequence only once, it's large! */ 416 /* Send init sequence only once, it's large! */
@@ -432,7 +432,7 @@ static int usbvision_v4l2_open(struct inode *inode, struct file *file)
432 } 432 }
433 else { 433 else {
434 if (PowerOnAtOpen) { 434 if (PowerOnAtOpen) {
435 usbvision_i2c_usb_del_bus(&usbvision->i2c_adap); 435 usbvision_i2c_unregister(usbvision);
436 usbvision_power_off(usbvision); 436 usbvision_power_off(usbvision);
437 usbvision->initialized = 0; 437 usbvision->initialized = 0;
438 } 438 }
@@ -1240,7 +1240,7 @@ static int usbvision_radio_open(struct inode *inode, struct file *file)
1240 usbvision_reset_powerOffTimer(usbvision); 1240 usbvision_reset_powerOffTimer(usbvision);
1241 if (usbvision->power == 0) { 1241 if (usbvision->power == 0) {
1242 usbvision_power_on(usbvision); 1242 usbvision_power_on(usbvision);
1243 usbvision_init_i2c(usbvision); 1243 usbvision_i2c_register(usbvision);
1244 } 1244 }
1245 } 1245 }
1246 1246
@@ -1262,7 +1262,7 @@ static int usbvision_radio_open(struct inode *inode, struct file *file)
1262 1262
1263 if (errCode) { 1263 if (errCode) {
1264 if (PowerOnAtOpen) { 1264 if (PowerOnAtOpen) {
1265 usbvision_i2c_usb_del_bus(&usbvision->i2c_adap); 1265 usbvision_i2c_unregister(usbvision);
1266 usbvision_power_off(usbvision); 1266 usbvision_power_off(usbvision);
1267 usbvision->initialized = 0; 1267 usbvision->initialized = 0;
1268 } 1268 }
@@ -1765,7 +1765,7 @@ static void usbvision_configure_video(struct usb_usbvision *usbvision)
1765 usbvision_audio_off(usbvision); //first switch off audio 1765 usbvision_audio_off(usbvision); //first switch off audio
1766 if (!PowerOnAtOpen) { 1766 if (!PowerOnAtOpen) {
1767 usbvision_power_on(usbvision); //and then power up the noisy tuner 1767 usbvision_power_on(usbvision); //and then power up the noisy tuner
1768 usbvision_init_i2c(usbvision); 1768 usbvision_i2c_register(usbvision);
1769 } 1769 }
1770} 1770}
1771 1771
@@ -1913,7 +1913,7 @@ static void __devexit usbvision_disconnect(struct usb_interface *intf)
1913 usbvision_stop_isoc(usbvision); 1913 usbvision_stop_isoc(usbvision);
1914 1914
1915 if (usbvision->power) { 1915 if (usbvision->power) {
1916 usbvision_i2c_usb_del_bus(&usbvision->i2c_adap); 1916 usbvision_i2c_unregister(usbvision);
1917 usbvision_power_off(usbvision); 1917 usbvision_power_off(usbvision);
1918 } 1918 }
1919 usbvision->remove_pending = 1; // Now all ISO data will be ignored 1919 usbvision->remove_pending = 1; // Now all ISO data will be ignored