diff options
Diffstat (limited to 'arch/mips/lasat/picvue.c')
-rw-r--r-- | arch/mips/lasat/picvue.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/mips/lasat/picvue.c b/arch/mips/lasat/picvue.c index 5637cd153926..9ae82c3ffb07 100644 --- a/arch/mips/lasat/picvue.c +++ b/arch/mips/lasat/picvue.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * Picvue PVC160206 display driver | 2 | * Picvue PVC160206 display driver |
3 | * | 3 | * |
4 | * Brian Murphy <brian@murphy.dk> | 4 | * Brian Murphy <brian@murphy.dk> |
5 | * | 5 | * |
6 | */ | 6 | */ |
7 | #include <linux/kernel.h> | 7 | #include <linux/kernel.h> |
@@ -24,12 +24,12 @@ struct pvc_defs *picvue = NULL; | |||
24 | 24 | ||
25 | DECLARE_MUTEX(pvc_sem); | 25 | DECLARE_MUTEX(pvc_sem); |
26 | 26 | ||
27 | static void pvc_reg_write(u32 val) | 27 | static void pvc_reg_write(u32 val) |
28 | { | 28 | { |
29 | *picvue->reg = val; | 29 | *picvue->reg = val; |
30 | } | 30 | } |
31 | 31 | ||
32 | static u32 pvc_reg_read(void) | 32 | static u32 pvc_reg_read(void) |
33 | { | 33 | { |
34 | u32 tmp = *picvue->reg; | 34 | u32 tmp = *picvue->reg; |
35 | return tmp; | 35 | return tmp; |
@@ -65,12 +65,12 @@ static u8 pvc_read_data(void) | |||
65 | { | 65 | { |
66 | u32 data = pvc_reg_read(); | 66 | u32 data = pvc_reg_read(); |
67 | u8 byte; | 67 | u8 byte; |
68 | data |= picvue->rw; | 68 | data |= picvue->rw; |
69 | data &= ~picvue->rs; | 69 | data &= ~picvue->rs; |
70 | pvc_reg_write(data); | 70 | pvc_reg_write(data); |
71 | ndelay(40); | 71 | ndelay(40); |
72 | byte = pvc_read_byte(data); | 72 | byte = pvc_read_byte(data); |
73 | data |= picvue->rs; | 73 | data |= picvue->rs; |
74 | pvc_reg_write(data); | 74 | pvc_reg_write(data); |
75 | return byte; | 75 | return byte; |
76 | } | 76 | } |