aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/radio/radio-gemtek-pci.c
diff options
context:
space:
mode:
authorRichard Knutsson <ricknu-0@student.ltu.se>2007-02-06 19:55:07 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-02-21 10:35:17 -0500
commitfd4bc4455360ff0b6ff50ec8fa5673b4da18cbb6 (patch)
tree531facca0001f648c2d692e937f88c8b9014ce5c /drivers/media/radio/radio-gemtek-pci.c
parentdb406b58551bc7de1e331e8ad1bc11ba1545ee8b (diff)
V4L/DVB (5201): Radio/: Convert to generic boolean-values
Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/radio/radio-gemtek-pci.c')
-rw-r--r--drivers/media/radio/radio-gemtek-pci.c18
1 files changed, 5 insertions, 13 deletions
diff --git a/drivers/media/radio/radio-gemtek-pci.c b/drivers/media/radio/radio-gemtek-pci.c
index 05e5aa77025f..74976cba869f 100644
--- a/drivers/media/radio/radio-gemtek-pci.c
+++ b/drivers/media/radio/radio-gemtek-pci.c
@@ -89,14 +89,6 @@ static struct v4l2_queryctrl radio_qctrl[] = {
89#define GEMTEK_PCI_RANGE_HIGH (108*16000) 89#define GEMTEK_PCI_RANGE_HIGH (108*16000)
90#endif 90#endif
91 91
92#ifndef TRUE
93#define TRUE (1)
94#endif
95
96#ifndef FALSE
97#define FALSE (0)
98#endif
99
100struct gemtek_pci_card { 92struct gemtek_pci_card {
101 struct video_device *videodev; 93 struct video_device *videodev;
102 94
@@ -146,12 +138,12 @@ static void __gemtek_pci_cmd( u16 value, u32 port, u8 *last_byte, int keep )
146 138
147static inline void gemtek_pci_nil( u32 port, u8 *last_byte ) 139static inline void gemtek_pci_nil( u32 port, u8 *last_byte )
148{ 140{
149 __gemtek_pci_cmd( 0x00, port, last_byte, FALSE ); 141 __gemtek_pci_cmd( 0x00, port, last_byte, false );
150} 142}
151 143
152static inline void gemtek_pci_cmd( u16 cmd, u32 port, u8 *last_byte ) 144static inline void gemtek_pci_cmd( u16 cmd, u32 port, u8 *last_byte )
153{ 145{
154 __gemtek_pci_cmd( cmd, port, last_byte, TRUE ); 146 __gemtek_pci_cmd( cmd, port, last_byte, true );
155} 147}
156 148
157static void gemtek_pci_setfrequency( struct gemtek_pci_card *card, unsigned long frequency ) 149static void gemtek_pci_setfrequency( struct gemtek_pci_card *card, unsigned long frequency )
@@ -184,14 +176,14 @@ static void gemtek_pci_setfrequency( struct gemtek_pci_card *card, unsigned long
184static inline void gemtek_pci_mute( struct gemtek_pci_card *card ) 176static inline void gemtek_pci_mute( struct gemtek_pci_card *card )
185{ 177{
186 outb( 0x1f, card->iobase ); 178 outb( 0x1f, card->iobase );
187 card->mute = TRUE; 179 card->mute = true;
188} 180}
189 181
190static inline void gemtek_pci_unmute( struct gemtek_pci_card *card ) 182static inline void gemtek_pci_unmute( struct gemtek_pci_card *card )
191{ 183{
192 if ( card->mute ) { 184 if ( card->mute ) {
193 gemtek_pci_setfrequency( card, card->current_frequency ); 185 gemtek_pci_setfrequency( card, card->current_frequency );
194 card->mute = FALSE; 186 card->mute = false;
195 } 187 }
196} 188}
197 189
@@ -259,7 +251,7 @@ static int gemtek_pci_do_ioctl(struct inode *inode, struct file *file,
259 251
260 gemtek_pci_setfrequency( card, f->frequency ); 252 gemtek_pci_setfrequency( card, f->frequency );
261 card->current_frequency = f->frequency; 253 card->current_frequency = f->frequency;
262 card->mute = FALSE; 254 card->mute = false;
263 return 0; 255 return 0;
264 } 256 }
265 case VIDIOC_QUERYCTRL: 257 case VIDIOC_QUERYCTRL: