Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] radio: use true/false for boolean vars

Instead of using 0 or 1 for boolean, use the true/false
defines.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>

+5 -5
+1 -1
drivers/media/radio/radio-gemtek.c
··· 332 332 333 333 static void __exit gemtek_exit(void) 334 334 { 335 - hardmute = 1; /* Turn off PLL */ 335 + hardmute = true; /* Turn off PLL */ 336 336 #ifdef CONFIG_PNP 337 337 pnp_unregister_driver(&gemtek_driver.pnp_driver); 338 338 #endif
+2 -2
drivers/media/radio/radio-sf16fmi.c
··· 285 285 io = isapnp_fmi_probe(); 286 286 if (io < 0) 287 287 continue; 288 - pnp_attached = 1; 288 + pnp_attached = true; 289 289 } 290 290 if (!request_region(io, 2, "radio-sf16fmi")) { 291 291 if (pnp_attached) ··· 349 349 mutex_init(&fmi->lock); 350 350 351 351 /* mute card and set default frequency */ 352 - fmi->mute = 1; 352 + fmi->mute = true; 353 353 fmi->curfreq = RSF16_MINFREQ; 354 354 fmi_set_freq(fmi); 355 355
+2 -2
drivers/media/radio/si470x/radio-si470x-common.c
··· 208 208 static int si470x_set_chan(struct si470x_device *radio, unsigned short chan) 209 209 { 210 210 int retval; 211 - bool timed_out = 0; 211 + bool timed_out = false; 212 212 213 213 /* start tuning */ 214 214 radio->registers[CHANNEL] &= ~CHANNEL_CHAN; ··· 300 300 { 301 301 int band, retval; 302 302 unsigned int freq; 303 - bool timed_out = 0; 303 + bool timed_out = false; 304 304 305 305 /* set band */ 306 306 if (seek->rangelow || seek->rangehigh) {