diff options
author | Brett Warden <brett.warden@gmail.com> | 2007-10-02 16:37:21 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-09 21:14:55 -0400 |
commit | 7c596fa964806acb3b5ababb7ec4e1da35b140b3 (patch) | |
tree | e984a8f2fdc08289b204abda036bc50679f1b586 /drivers/media | |
parent | b5457b7bdf284d683880163a4c59fdde2f84325a (diff) |
V4L/DVB (6250): bw-qcam use data_reverse instead of manually poking the control register fix
coding-style repairs
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/bw-qcam.c | 8 |
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 | ||
105 | static inline void write_lpcontrol(struct qcam_device *q, int d) | 105 | static 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 | } |