Skip to content

Commit

Permalink
V4L/DVB (6250): bw-qcam use data_reverse instead of manually poking t…
Browse files Browse the repository at this point in the history
…he control register fix

coding-style repairs

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Brett Warden authored and Mauro Carvalho Chehab committed Oct 10, 2007
1 parent b5457b7 commit 7c596fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/media/video/bw-qcam.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ static inline void write_lpdata(struct qcam_device *q, int d)

static inline void write_lpcontrol(struct qcam_device *q, int d)
{
if(0x20 & d) {
if (d & 0x20) {
/* Set bidirectional mode to reverse (data in) */
parport_data_reverse(q->pport);
} else {
Expand Down Expand Up @@ -355,11 +355,11 @@ static int qc_detect(struct qcam_device *q)
/* Be (even more) liberal in what you accept... */

/* if (count > 30 && count < 200) */
if (count > 20 && count < 400)
{
if (count > 20 && count < 400) {
return 1; /* found */
} else {
printk(KERN_ERR "No Quickcam found on port %s\n", q->pport->name);
printk(KERN_ERR "No Quickcam found on port %s\n",
q->pport->name);
return 0; /* not found */
}
}
Expand Down

0 comments on commit 7c596fa

Please sign in to comment.