[PATCH 18/30] staging: unisys: change uislib.c variables from type bool to int

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Erik Arfvidson <erik.arfvidson@xxxxxxxxxx>

this patch changes uislib.c variables from type bool to int

Signed-off-by: Erik Arfvidson <erik.arfvidson@xxxxxxxxxx>
Signed-off-by: Benjamin Romer <benjamin.romer@xxxxxxxxxx>
---
 drivers/staging/unisys/uislib/uislib.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/drivers/staging/unisys/uislib/uislib.c b/drivers/staging/unisys/uislib/uislib.c
index a9eedde..a5d25c8 100644
--- a/drivers/staging/unisys/uislib/uislib.c
+++ b/drivers/staging/unisys/uislib/uislib.c
@@ -78,7 +78,7 @@ static u64 phys_data_chan;
 static int platform_no;
 
 static struct uisthread_info incoming_ti;
-static BOOL incoming_started = FALSE;
+static int incoming_started;
 static LIST_HEAD(poll_dev_chan);
 static unsigned long long tot_moved_to_tail_cnt;
 static unsigned long long tot_wait_cnt;
@@ -1339,18 +1339,18 @@ static int process_incoming(void *v)
 	complete_and_exit(&incoming_ti.has_stopped, 0);
 }
 
-static BOOL
+static int
 initialize_incoming_thread(void)
 {
 	if (incoming_started)
-		return TRUE;
+		return 1;
 	if (!uisthread_start(&incoming_ti,
 			     &process_incoming, NULL, "dev_incoming")) {
 		LOGERR("uisthread_start initialize_incoming_thread ****FAILED");
-		return FALSE;
+		return 0;
 	}
-	incoming_started = TRUE;
-	return TRUE;
+	incoming_started = 1;
+	return 1;
 }
 
 /*  Add a new device/channel to the list being processed by
@@ -1376,7 +1376,7 @@ uislib_enable_channel_interrupts(u32 bus_no, u32 dev_no,
 	initialize_incoming_thread();
 	dev->interrupt = interrupt;
 	dev->interrupt_context = interrupt_context;
-	dev->polling = TRUE;
+	dev->polling = 1;
 	list_add_tail(&dev->list_polling_device_channels,
 		      &poll_dev_chan);
 	up(&poll_dev_lock);
@@ -1399,7 +1399,7 @@ uislib_disable_channel_interrupts(u32 bus_no, u32 dev_no)
 	}
 	down(&poll_dev_lock);
 	list_del(&dev->list_polling_device_channels);
-	dev->polling = FALSE;
+	dev->polling = 0;
 	dev->interrupt = NULL;
 	up(&poll_dev_lock);
 }
-- 
2.1.0

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux