aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/bw-qcam.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/bw-qcam.c')
-rw-r--r--drivers/media/video/bw-qcam.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/video/bw-qcam.c b/drivers/media/video/bw-qcam.c
index 0edd05ebcc3f..7f7e3d3398d0 100644
--- a/drivers/media/video/bw-qcam.c
+++ b/drivers/media/video/bw-qcam.c
@@ -104,7 +104,7 @@ static inline void write_lpdata(struct qcam_device *q, int d)
104 104
105static inline void write_lpcontrol(struct qcam_device *q, int d) 105static inline void write_lpcontrol(struct qcam_device *q, int d)
106{ 106{
107 if(0x20 & d) { 107 if (d & 0x20) {
108 /* Set bidirectional mode to reverse (data in) */ 108 /* Set bidirectional mode to reverse (data in) */
109 parport_data_reverse(q->pport); 109 parport_data_reverse(q->pport);
110 } else { 110 } else {
@@ -355,11 +355,11 @@ static int qc_detect(struct qcam_device *q)
355 /* Be (even more) liberal in what you accept... */ 355 /* Be (even more) liberal in what you accept... */
356 356
357/* if (count > 30 && count < 200) */ 357/* if (count > 30 && count < 200) */
358 if (count > 20 && count < 400) 358 if (count > 20 && count < 400) {
359 {
360 return 1; /* found */ 359 return 1; /* found */
361 } else { 360 } else {
362 printk(KERN_ERR "No Quickcam found on port %s\n", q->pport->name); 361 printk(KERN_ERR "No Quickcam found on port %s\n",
362 q->pport->name);
363 return 0; /* not found */ 363 return 0; /* not found */
364 } 364 }
365} 365}