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

char/mwave: remove custom BOOLEAN type

The mwave driver has its own macros for the BOOLEAN type and the
TRUE/FALSE values. This is redundant because the kernel already
has bool/true/false, and it clashes with the ACPI headers that
also define these types. The linux/acpi.h header is now included
implicitly from mwave through the mc146818rtc.h header, as
reported by Stephen Rothwell:

In file included from drivers/char/mwave/smapi.c:51:0:
drivers/char/mwave/smapi.h:52:0: warning: "TRUE" redefined
#define TRUE 1
^
In file included from include/acpi/acpi.h:58:0,
from include/linux/acpi.h:33,
from include/linux/mc146818rtc.h:21,
from drivers/char/mwave/smapi.c:50:
include/acpi/actypes.h:438:0: note: this is the location of the previous definition
#define TRUE (1 == 1)
^

This removes the private types from mwave and uses the standard
types instead.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Fixes: fd09cc80165c ("rtc: cmos: move mc146818rtc code out of asm-generic/rtc.h")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Arnd Bergmann and committed by
Greg Kroah-Hartman
26ec99b1 8b7d3a9d

+93 -97
+32 -32
drivers/char/mwave/3780i.c
··· 124 124 MKBYTE(rSlaveControl)); 125 125 126 126 rSlaveControl_Save = rSlaveControl; 127 - rSlaveControl.ConfigMode = TRUE; 127 + rSlaveControl.ConfigMode = true; 128 128 129 129 PRINTK_2(TRACE_3780I, 130 130 "3780i::dsp3780i_WriteGenCfg entry rSlaveControl+ConfigMode %x\n", ··· 155 155 156 156 MKBYTE(rSlaveControl) = InByteDsp(DSP_IsaSlaveControl); 157 157 rSlaveControl_Save = rSlaveControl; 158 - rSlaveControl.ConfigMode = TRUE; 158 + rSlaveControl.ConfigMode = true; 159 159 OutByteDsp(DSP_IsaSlaveControl, MKBYTE(rSlaveControl)); 160 160 OutByteDsp(DSP_ConfigAddress, (unsigned char) uIndex); 161 161 ucValue = InByteDsp(DSP_ConfigData); ··· 230 230 rUartCfg1.BaseIO = 3; 231 231 break; 232 232 } 233 - rUartCfg2.Enable = TRUE; 233 + rUartCfg2.Enable = true; 234 234 } 235 235 236 236 rHBridgeCfg1.Reserved = rHBridgeCfg2.Reserved = 0; ··· 238 238 rHBridgeCfg1.IrqPulse = pSettings->bDspIrqPulse; 239 239 rHBridgeCfg1.Irq = (unsigned char) pIrqMap[pSettings->usDspIrq]; 240 240 rHBridgeCfg1.AccessMode = 1; 241 - rHBridgeCfg2.Enable = TRUE; 241 + rHBridgeCfg2.Enable = true; 242 242 243 243 244 244 rBusmasterCfg2.Reserved = 0; ··· 278 278 * soft-reset active for 10ms. 279 279 */ 280 280 rSlaveControl.ClockControl = 0; 281 - rSlaveControl.SoftReset = TRUE; 282 - rSlaveControl.ConfigMode = FALSE; 281 + rSlaveControl.SoftReset = true; 282 + rSlaveControl.ConfigMode = false; 283 283 rSlaveControl.Reserved = 0; 284 284 285 285 PRINTK_4(TRACE_3780I, ··· 302 302 for (i = 0; i < 11; i++) 303 303 udelay(2000); 304 304 305 - rSlaveControl.SoftReset = FALSE; 305 + rSlaveControl.SoftReset = false; 306 306 OutWordDsp(DSP_IsaSlaveControl, MKWORD(rSlaveControl)); 307 307 308 308 MKWORD(tval) = InWordDsp(DSP_IsaSlaveControl); ··· 326 326 } 327 327 328 328 329 - rHBridgeControl.EnableDspInt = FALSE; 330 - rHBridgeControl.MemAutoInc = TRUE; 331 - rHBridgeControl.IoAutoInc = FALSE; 332 - rHBridgeControl.DiagnosticMode = FALSE; 329 + rHBridgeControl.EnableDspInt = false; 330 + rHBridgeControl.MemAutoInc = true; 331 + rHBridgeControl.IoAutoInc = false; 332 + rHBridgeControl.DiagnosticMode = false; 333 333 334 334 PRINTK_3(TRACE_3780I, 335 335 "3780i::dsp3780i_EnableDSP DSP_HBridgeControl %x rHBridgeControl %x\n", ··· 345 345 ChipID = ReadMsaCfg(DSP_ChipID); 346 346 347 347 PRINTK_2(TRACE_3780I, 348 - "3780i::dsp3780I_EnableDSP exiting bRC=TRUE, ChipID %x\n", 348 + "3780i::dsp3780I_EnableDSP exiting bRC=true, ChipID %x\n", 349 349 ChipID); 350 350 351 351 return 0; ··· 361 361 PRINTK_1(TRACE_3780I, "3780i::dsp3780i_DisableDSP entry\n"); 362 362 363 363 rSlaveControl.ClockControl = 0; 364 - rSlaveControl.SoftReset = TRUE; 365 - rSlaveControl.ConfigMode = FALSE; 364 + rSlaveControl.SoftReset = true; 365 + rSlaveControl.ConfigMode = false; 366 366 rSlaveControl.Reserved = 0; 367 367 spin_lock_irqsave(&dsp_lock, flags); 368 368 OutWordDsp(DSP_IsaSlaveControl, MKWORD(rSlaveControl)); ··· 398 398 PRINTK_2(TRACE_3780I, "3780i::dsp3780i_Reset rHBridgeControl %x\n", 399 399 MKWORD(rHBridgeControl)); 400 400 401 - rHBridgeControl.EnableDspInt = FALSE; 401 + rHBridgeControl.EnableDspInt = false; 402 402 OutWordDsp(DSP_HBridgeControl, MKWORD(rHBridgeControl)); 403 403 spin_unlock_irqrestore(&dsp_lock, flags); 404 404 405 405 /* Reset the core via the boot domain register */ 406 - rBootDomain.ResetCore = TRUE; 407 - rBootDomain.Halt = TRUE; 408 - rBootDomain.NMI = TRUE; 406 + rBootDomain.ResetCore = true; 407 + rBootDomain.Halt = true; 408 + rBootDomain.NMI = true; 409 409 rBootDomain.Reserved = 0; 410 410 411 411 PRINTK_2(TRACE_3780I, "3780i::dsp3780i_Reset rBootDomain %x\n", ··· 438 438 439 439 440 440 /* Transition the core to a running state */ 441 - rBootDomain.ResetCore = TRUE; 442 - rBootDomain.Halt = FALSE; 443 - rBootDomain.NMI = TRUE; 441 + rBootDomain.ResetCore = true; 442 + rBootDomain.Halt = false; 443 + rBootDomain.NMI = true; 444 444 rBootDomain.Reserved = 0; 445 445 WriteMsaCfg(DSP_MspBootDomain, MKWORD(rBootDomain)); 446 446 447 447 udelay(5); 448 448 449 - rBootDomain.ResetCore = FALSE; 449 + rBootDomain.ResetCore = false; 450 450 WriteMsaCfg(DSP_MspBootDomain, MKWORD(rBootDomain)); 451 451 udelay(5); 452 452 453 - rBootDomain.NMI = FALSE; 453 + rBootDomain.NMI = false; 454 454 WriteMsaCfg(DSP_MspBootDomain, MKWORD(rBootDomain)); 455 455 udelay(5); 456 456 457 457 /* Enable DSP to PC interrupt */ 458 458 spin_lock_irqsave(&dsp_lock, flags); 459 459 MKWORD(rHBridgeControl) = InWordDsp(DSP_HBridgeControl); 460 - rHBridgeControl.EnableDspInt = TRUE; 460 + rHBridgeControl.EnableDspInt = true; 461 461 462 462 PRINTK_2(TRACE_3780I, "3780i::dsp3780i_Run rHBridgeControl %x\n", 463 463 MKWORD(rHBridgeControl)); ··· 466 466 spin_unlock_irqrestore(&dsp_lock, flags); 467 467 468 468 469 - PRINTK_1(TRACE_3780I, "3780i::dsp3780i_Run exit bRC=TRUE\n"); 469 + PRINTK_1(TRACE_3780I, "3780i::dsp3780i_Run exit bRC=true\n"); 470 470 471 471 return 0; 472 472 } ··· 508 508 509 509 510 510 PRINTK_1(TRACE_3780I, 511 - "3780I::dsp3780I_ReadDStore exit bRC=TRUE\n"); 511 + "3780I::dsp3780I_ReadDStore exit bRC=true\n"); 512 512 513 513 return 0; 514 514 } ··· 550 550 551 551 552 552 PRINTK_1(TRACE_3780I, 553 - "3780I::dsp3780I_ReadAndClearDStore exit bRC=TRUE\n"); 553 + "3780I::dsp3780I_ReadAndClearDStore exit bRC=true\n"); 554 554 555 555 return 0; 556 556 } ··· 592 592 593 593 594 594 PRINTK_1(TRACE_3780I, 595 - "3780I::dsp3780D_WriteDStore exit bRC=TRUE\n"); 595 + "3780I::dsp3780D_WriteDStore exit bRC=true\n"); 596 596 597 597 return 0; 598 598 } ··· 640 640 } 641 641 642 642 PRINTK_1(TRACE_3780I, 643 - "3780I::dsp3780I_ReadIStore exit bRC=TRUE\n"); 643 + "3780I::dsp3780I_ReadIStore exit bRC=true\n"); 644 644 645 645 return 0; 646 646 } ··· 689 689 } 690 690 691 691 PRINTK_1(TRACE_3780I, 692 - "3780I::dsp3780I_WriteIStore exit bRC=TRUE\n"); 692 + "3780I::dsp3780I_WriteIStore exit bRC=true\n"); 693 693 694 694 return 0; 695 695 } ··· 713 713 */ 714 714 spin_lock_irqsave(&dsp_lock, flags); 715 715 MKWORD(rHBridgeControl) = InWordDsp(DSP_HBridgeControl); 716 - rHBridgeControl.EnableDspInt = FALSE; 716 + rHBridgeControl.EnableDspInt = false; 717 717 OutWordDsp(DSP_HBridgeControl, MKWORD(rHBridgeControl)); 718 718 719 719 *pusIPCSource = InWordDsp(DSP_Interrupt); ··· 725 725 726 726 OutWordDsp(DSP_Interrupt, (unsigned short) ~(*pusIPCSource)); 727 727 728 - rHBridgeControl.EnableDspInt = TRUE; 728 + rHBridgeControl.EnableDspInt = true; 729 729 OutWordDsp(DSP_HBridgeControl, MKWORD(rHBridgeControl)); 730 730 spin_unlock_irqrestore(&dsp_lock, flags); 731 731
+4 -4
drivers/char/mwave/3780i.h
··· 101 101 } DSP_UART_CFG_1; 102 102 103 103 typedef struct { 104 - unsigned char Enable:1; /* RW: Enable I/O and IRQ: 0=FALSE, 1=TRUE */ 104 + unsigned char Enable:1; /* RW: Enable I/O and IRQ: 0=false, 1=true */ 105 105 unsigned char Reserved:7; /* 0: Reserved */ 106 106 } DSP_UART_CFG_2; 107 107 ··· 114 114 } DSP_HBRIDGE_CFG_1; 115 115 116 116 typedef struct { 117 - unsigned char Enable:1; /* RW: enable I/O and IRQ: 0=FALSE, 1=TRUE */ 117 + unsigned char Enable:1; /* RW: enable I/O and IRQ: 0=false, 1=true */ 118 118 unsigned char Reserved:7; /* 0: Reserved */ 119 119 } DSP_HBRIDGE_CFG_2; 120 120 ··· 133 133 134 134 135 135 typedef struct { 136 - unsigned char GateIOCHRDY:1; /* RW: Enable IOCHRDY gating: 0=FALSE, 1=TRUE */ 136 + unsigned char GateIOCHRDY:1; /* RW: Enable IOCHRDY gating: 0=false, 1=true */ 137 137 unsigned char Reserved:7; /* 0: Reserved */ 138 138 } DSP_ISA_PROT_CFG; 139 139 140 140 typedef struct { 141 - unsigned char Enable:1; /* RW: Enable low power suspend/resume 0=FALSE, 1=TRUE */ 141 + unsigned char Enable:1; /* RW: Enable low power suspend/resume 0=false, 1=true */ 142 142 unsigned char Reserved:7; /* 0: Reserved */ 143 143 } DSP_POWER_MGMT_CFG; 144 144
+21 -21
drivers/char/mwave/mwavedd.c
··· 296 296 pDrvData->IPCs[ipcnum].usIntCount); 297 297 298 298 mutex_lock(&mwave_mutex); 299 - pDrvData->IPCs[ipcnum].bIsHere = FALSE; 300 - pDrvData->IPCs[ipcnum].bIsEnabled = TRUE; 299 + pDrvData->IPCs[ipcnum].bIsHere = false; 300 + pDrvData->IPCs[ipcnum].bIsEnabled = true; 301 301 mutex_unlock(&mwave_mutex); 302 302 303 303 PRINTK_2(TRACE_MWAVE, ··· 324 324 pDrvData->IPCs[ipcnum].usIntCount); 325 325 326 326 mutex_lock(&mwave_mutex); 327 - if (pDrvData->IPCs[ipcnum].bIsEnabled == TRUE) { 327 + if (pDrvData->IPCs[ipcnum].bIsEnabled == true) { 328 328 DECLARE_WAITQUEUE(wait, current); 329 329 330 330 PRINTK_2(TRACE_MWAVE, ··· 332 332 " ipc %x going to sleep\n", 333 333 ipcnum); 334 334 add_wait_queue(&pDrvData->IPCs[ipcnum].ipc_wait_queue, &wait); 335 - pDrvData->IPCs[ipcnum].bIsHere = TRUE; 335 + pDrvData->IPCs[ipcnum].bIsHere = true; 336 336 set_current_state(TASK_INTERRUPTIBLE); 337 337 /* check whether an event was signalled by */ 338 338 /* the interrupt handler while we were gone */ ··· 355 355 " application\n", 356 356 ipcnum); 357 357 } 358 - pDrvData->IPCs[ipcnum].bIsHere = FALSE; 358 + pDrvData->IPCs[ipcnum].bIsHere = false; 359 359 remove_wait_queue(&pDrvData->IPCs[ipcnum].ipc_wait_queue, &wait); 360 360 set_current_state(TASK_RUNNING); 361 361 PRINTK_2(TRACE_MWAVE, ··· 384 384 return -EINVAL; 385 385 } 386 386 mutex_lock(&mwave_mutex); 387 - if (pDrvData->IPCs[ipcnum].bIsEnabled == TRUE) { 388 - pDrvData->IPCs[ipcnum].bIsEnabled = FALSE; 389 - if (pDrvData->IPCs[ipcnum].bIsHere == TRUE) { 387 + if (pDrvData->IPCs[ipcnum].bIsEnabled == true) { 388 + pDrvData->IPCs[ipcnum].bIsEnabled = false; 389 + if (pDrvData->IPCs[ipcnum].bIsHere == true) { 390 390 wake_up_interruptible(&pDrvData->IPCs[ipcnum].ipc_wait_queue); 391 391 } 392 392 } ··· 541 541 542 542 if (pDrvData->device_registered) { 543 543 device_unregister(&mwave_device); 544 - pDrvData->device_registered = FALSE; 544 + pDrvData->device_registered = false; 545 545 } 546 546 #endif 547 547 ··· 576 576 577 577 memset(&mwave_s_mdd, 0, sizeof(MWAVE_DEVICE_DATA)); 578 578 579 - pDrvData->bBDInitialized = FALSE; 580 - pDrvData->bResourcesClaimed = FALSE; 581 - pDrvData->bDSPEnabled = FALSE; 582 - pDrvData->bDSPReset = FALSE; 583 - pDrvData->bMwaveDevRegistered = FALSE; 579 + pDrvData->bBDInitialized = false; 580 + pDrvData->bResourcesClaimed = false; 581 + pDrvData->bDSPEnabled = false; 582 + pDrvData->bDSPReset = false; 583 + pDrvData->bMwaveDevRegistered = false; 584 584 pDrvData->sLine = -1; 585 585 586 586 for (i = 0; i < ARRAY_SIZE(pDrvData->IPCs); i++) { 587 - pDrvData->IPCs[i].bIsEnabled = FALSE; 588 - pDrvData->IPCs[i].bIsHere = FALSE; 587 + pDrvData->IPCs[i].bIsEnabled = false; 588 + pDrvData->IPCs[i].bIsHere = false; 589 589 pDrvData->IPCs[i].usIntCount = 0; /* no ints received yet */ 590 590 init_waitqueue_head(&pDrvData->IPCs[i].ipc_wait_queue); 591 591 } ··· 601 601 " Failed to initialize board data\n"); 602 602 goto cleanup_error; 603 603 } 604 - pDrvData->bBDInitialized = TRUE; 604 + pDrvData->bBDInitialized = true; 605 605 606 606 retval = tp3780I_CalcResources(&pDrvData->rBDData); 607 607 PRINTK_2(TRACE_MWAVE, ··· 626 626 " Failed to claim resources\n"); 627 627 goto cleanup_error; 628 628 } 629 - pDrvData->bResourcesClaimed = TRUE; 629 + pDrvData->bResourcesClaimed = true; 630 630 631 631 retval = tp3780I_EnableDSP(&pDrvData->rBDData); 632 632 PRINTK_2(TRACE_MWAVE, ··· 639 639 " Failed to enable DSP\n"); 640 640 goto cleanup_error; 641 641 } 642 - pDrvData->bDSPEnabled = TRUE; 642 + pDrvData->bDSPEnabled = true; 643 643 644 644 if (misc_register(&mwave_misc_dev) < 0) { 645 645 PRINTK_ERROR(KERN_ERR_MWAVE ··· 647 647 " Failed to register misc device\n"); 648 648 goto cleanup_error; 649 649 } 650 - pDrvData->bMwaveDevRegistered = TRUE; 650 + pDrvData->bMwaveDevRegistered = true; 651 651 652 652 pDrvData->sLine = register_serial_portandirq( 653 653 pDrvData->rBDData.rDspSettings.usUartBaseIO, ··· 668 668 669 669 if (device_register(&mwave_device)) 670 670 goto cleanup_error; 671 - pDrvData->device_registered = TRUE; 671 + pDrvData->device_registered = true; 672 672 for (i = 0; i < ARRAY_SIZE(mwave_dev_attrs); i++) { 673 673 if(device_create_file(&mwave_device, mwave_dev_attrs[i])) { 674 674 PRINTK_ERROR(KERN_ERR_MWAVE
+7 -7
drivers/char/mwave/mwavedd.h
··· 125 125 126 126 typedef struct _MWAVE_IPC { 127 127 unsigned short usIntCount; /* 0=none, 1=first, 2=greater than 1st */ 128 - BOOLEAN bIsEnabled; 129 - BOOLEAN bIsHere; 128 + bool bIsEnabled; 129 + bool bIsHere; 130 130 /* entry spin lock */ 131 131 wait_queue_head_t ipc_wait_queue; 132 132 } MWAVE_IPC; ··· 135 135 THINKPAD_BD_DATA rBDData; /* board driver's data area */ 136 136 unsigned long ulIPCSource_ISR; /* IPC source bits for recently processed intr, set during ISR processing */ 137 137 unsigned long ulIPCSource_DPC; /* IPC source bits for recently processed intr, set during DPC processing */ 138 - BOOLEAN bBDInitialized; 139 - BOOLEAN bResourcesClaimed; 140 - BOOLEAN bDSPEnabled; 141 - BOOLEAN bDSPReset; 138 + bool bBDInitialized; 139 + bool bResourcesClaimed; 140 + bool bDSPEnabled; 141 + bool bDSPReset; 142 142 MWAVE_IPC IPCs[16]; 143 - BOOLEAN bMwaveDevRegistered; 143 + bool bMwaveDevRegistered; 144 144 short sLine; 145 145 int nr_registered_attrs; 146 146 int device_registered;
+2 -2
drivers/char/mwave/smapi.c
··· 493 493 } 494 494 495 495 496 - int smapi_set_DSP_power_state(BOOLEAN bOn) 496 + int smapi_set_DSP_power_state(bool bOn) 497 497 { 498 498 int bRC = -EIO; 499 499 unsigned short usAX, usBX, usCX, usDX, usDI, usSI; ··· 556 556 PRINTK_ERROR("smapi::smapi_init, ERROR unable to read from SMAPI port\n"); 557 557 } else { 558 558 PRINTK_2(TRACE_SMAPI, 559 - "smapi::smapi_init, exit TRUE g_usSmapiPort %x\n", 559 + "smapi::smapi_init, exit true g_usSmapiPort %x\n", 560 560 g_usSmapiPort); 561 561 retval = 0; 562 562 //SmapiQuerySystemID();
+1 -5
drivers/char/mwave/smapi.h
··· 49 49 #ifndef _LINUX_SMAPI_H 50 50 #define _LINUX_SMAPI_H 51 51 52 - #define TRUE 1 53 - #define FALSE 0 54 - #define BOOLEAN int 55 - 56 52 typedef struct { 57 53 int bDSPPresent; 58 54 int bDSPEnabled; ··· 70 74 int smapi_init(void); 71 75 int smapi_query_DSP_cfg(SMAPI_DSP_SETTINGS * pSettings); 72 76 int smapi_set_DSP_cfg(void); 73 - int smapi_set_DSP_power_state(BOOLEAN bOn); 77 + int smapi_set_DSP_power_state(bool bOn); 74 78 75 79 76 80 #endif
+26 -26
drivers/char/mwave/tp3780i.c
··· 80 80 WriteMsaCfg(DSP_GpioModeControl_15_8, MKWORD(rGpioMode)); 81 81 82 82 MKWORD(rGpioDriverEnable) = 0; 83 - rGpioDriverEnable.Enable10 = TRUE; 84 - rGpioDriverEnable.Mask10 = TRUE; 83 + rGpioDriverEnable.Enable10 = true; 84 + rGpioDriverEnable.Mask10 = true; 85 85 WriteMsaCfg(DSP_GpioDriverEnable_15_8, MKWORD(rGpioDriverEnable)); 86 86 87 87 MKWORD(rGpioOutputData) = 0; 88 88 rGpioOutputData.Latch10 = 0; 89 - rGpioOutputData.Mask10 = TRUE; 89 + rGpioOutputData.Mask10 = true; 90 90 WriteMsaCfg(DSP_GpioOutputData_15_8, MKWORD(rGpioOutputData)); 91 91 92 92 PRINTK_1(TRACE_TP3780I, "tp3780i::EnableSRAM exit\n"); ··· 127 127 PRINTK_2(TRACE_TP3780I, 128 128 "tp3780i::DspInterrupt usIntCount %x\n", 129 129 pDrvData->IPCs[usPCNum - 1].usIntCount); 130 - if (pDrvData->IPCs[usPCNum - 1].bIsEnabled == TRUE) { 130 + if (pDrvData->IPCs[usPCNum - 1].bIsEnabled == true) { 131 131 PRINTK_2(TRACE_TP3780I, 132 132 "tp3780i::DspInterrupt, waking up usPCNum %x\n", 133 133 usPCNum - 1); ··· 160 160 161 161 PRINTK_2(TRACE_TP3780I, "tp3780i::tp3780I_InitializeBoardData entry pBDData %p\n", pBDData); 162 162 163 - pBDData->bDSPEnabled = FALSE; 164 - pSettings->bInterruptClaimed = FALSE; 163 + pBDData->bDSPEnabled = false; 164 + pSettings->bInterruptClaimed = false; 165 165 166 166 retval = smapi_init(); 167 167 if (retval) { ··· 269 269 270 270 if (pSettings->bInterruptClaimed) { 271 271 free_irq(pSettings->usDspIrq, NULL); 272 - pSettings->bInterruptClaimed = FALSE; 272 + pSettings->bInterruptClaimed = false; 273 273 } 274 274 275 275 PRINTK_2(TRACE_TP3780I, ··· 283 283 int tp3780I_EnableDSP(THINKPAD_BD_DATA * pBDData) 284 284 { 285 285 DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings; 286 - BOOLEAN bDSPPoweredUp = FALSE, bInterruptAllocated = FALSE; 286 + bool bDSPPoweredUp = false, bInterruptAllocated = false; 287 287 288 288 PRINTK_2(TRACE_TP3780I, "tp3780i::tp3780I_EnableDSP entry pBDData %p\n", pBDData); 289 289 ··· 336 336 } 337 337 } 338 338 339 - pSettings->bDspIrqActiveLow = pSettings->bDspIrqPulse = TRUE; 340 - pSettings->bUartIrqActiveLow = pSettings->bUartIrqPulse = TRUE; 339 + pSettings->bDspIrqActiveLow = pSettings->bDspIrqPulse = true; 340 + pSettings->bUartIrqActiveLow = pSettings->bUartIrqPulse = true; 341 341 342 342 if (pBDData->bShareDspIrq) { 343 - pSettings->bDspIrqActiveLow = FALSE; 343 + pSettings->bDspIrqActiveLow = false; 344 344 } 345 345 if (pBDData->bShareUartIrq) { 346 - pSettings->bUartIrqActiveLow = FALSE; 346 + pSettings->bUartIrqActiveLow = false; 347 347 } 348 348 349 349 pSettings->usNumTransfers = TP_CFG_NumTransfers; ··· 373 373 PRINTK_3(TRACE_TP3780I, 374 374 "tp3780i::tp3780I_EnableDSP, got interrupt %x bShareDspIrq %x\n", 375 375 pSettings->usDspIrq, pBDData->bShareDspIrq); 376 - bInterruptAllocated = TRUE; 377 - pSettings->bInterruptClaimed = TRUE; 376 + bInterruptAllocated = true; 377 + pSettings->bInterruptClaimed = true; 378 378 } 379 379 380 - smapi_set_DSP_power_state(FALSE); 381 - if (smapi_set_DSP_power_state(TRUE)) { 382 - PRINTK_ERROR(KERN_ERR_MWAVE "tp3780i::tp3780I_EnableDSP: Error: smapi_set_DSP_power_state(TRUE) failed\n"); 380 + smapi_set_DSP_power_state(false); 381 + if (smapi_set_DSP_power_state(true)) { 382 + PRINTK_ERROR(KERN_ERR_MWAVE "tp3780i::tp3780I_EnableDSP: Error: smapi_set_DSP_power_state(true) failed\n"); 383 383 goto exit_cleanup; 384 384 } else { 385 - bDSPPoweredUp = TRUE; 385 + bDSPPoweredUp = true; 386 386 } 387 387 388 388 if (dsp3780I_EnableDSP(pSettings, s_ausThinkpadIrqToField, s_ausThinkpadDmaToField)) { ··· 392 392 393 393 EnableSRAM(pBDData); 394 394 395 - pBDData->bDSPEnabled = TRUE; 395 + pBDData->bDSPEnabled = true; 396 396 397 397 PRINTK_1(TRACE_TP3780I, "tp3780i::tp3780I_EnableDSP exit\n"); 398 398 ··· 401 401 exit_cleanup: 402 402 PRINTK_ERROR("tp3780i::tp3780I_EnableDSP: Cleaning up\n"); 403 403 if (bDSPPoweredUp) 404 - smapi_set_DSP_power_state(FALSE); 404 + smapi_set_DSP_power_state(false); 405 405 if (bInterruptAllocated) { 406 406 free_irq(pSettings->usDspIrq, NULL); 407 - pSettings->bInterruptClaimed = FALSE; 407 + pSettings->bInterruptClaimed = false; 408 408 } 409 409 return -EIO; 410 410 } ··· 421 421 dsp3780I_DisableDSP(&pBDData->rDspSettings); 422 422 if (pSettings->bInterruptClaimed) { 423 423 free_irq(pSettings->usDspIrq, NULL); 424 - pSettings->bInterruptClaimed = FALSE; 424 + pSettings->bInterruptClaimed = false; 425 425 } 426 - smapi_set_DSP_power_state(FALSE); 427 - pBDData->bDSPEnabled = FALSE; 426 + smapi_set_DSP_power_state(false); 427 + pBDData->bDSPEnabled = false; 428 428 } 429 429 430 430 PRINTK_2(TRACE_TP3780I, "tp3780i::tp3780I_DisableDSP exit retval %x\n", retval); ··· 516 516 int retval = 0; 517 517 DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings; 518 518 unsigned short usDspBaseIO = pSettings->usDspBaseIO; 519 - BOOLEAN bRC = 0; 519 + bool bRC = 0; 520 520 521 521 PRINTK_6(TRACE_TP3780I, 522 522 "tp3780i::tp3780I_ReadWriteDspDStore entry pBDData %p, uOpcode %x, pvBuffer %p, uCount %x, ulDSPAddr %lx\n", ··· 552 552 int retval = 0; 553 553 DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings; 554 554 unsigned short usDspBaseIO = pSettings->usDspBaseIO; 555 - BOOLEAN bRC = 0; 555 + bool bRC = 0; 556 556 557 557 PRINTK_6(TRACE_TP3780I, 558 558 "tp3780i::tp3780I_ReadWriteDspIStore entry pBDData %p, uOpcode %x, pvBuffer %p, uCount %x, ulDSPAddr %lx\n",