summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-10-02 13:37:21 -0700
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-10-02 13:37:21 -0700
commit0a663ce877478d6c00ea8da930715ab50cf6e3e8 (patch)
tree8016ae56e9abdf773b614b03cfc27ec066ade87c
parentc5c701010371d7f574f1f2e9ca92835b99d7cc2b (diff)
downloadmediapointer-dvb-s2-0a663ce877478d6c00ea8da930715ab50cf6e3e8.tar.gz
mediapointer-dvb-s2-0a663ce877478d6c00ea8da930715ab50cf6e3e8.tar.bz2
bw-qcam-use-data_reverse-instead-of-manually-poking-the-control-register fix
From: Brett Warden <brett.warden@gmail.com> coding-style repairs Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r--linux/drivers/media/video/bw-qcam.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/linux/drivers/media/video/bw-qcam.c b/linux/drivers/media/video/bw-qcam.c
index f6d5197da..cb272ecd8 100644
--- a/linux/drivers/media/video/bw-qcam.c
+++ b/linux/drivers/media/video/bw-qcam.c
@@ -107,7 +107,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 {
@@ -358,11 +358,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 */
}
}