public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] block: Convert to generic boolean
@ 2007-05-01 19:08 Richard Knutsson
  2007-05-01 20:26 ` Alan Cox
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Knutsson @ 2007-05-01 19:08 UTC (permalink / raw)
  To: axboe; +Cc: linux-kernel, Richard Knutsson

Convert to generic boolean

Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se>
---
Compile-tested but most arch/conf tested failed for other reasons then this
Diffed against Linus' git-tree.

 ps2esdi.c |    8 ++++----
 z2ram.c   |    3 ---
 2 files changed, 4 insertions(+), 7 deletions(-)


diff --git a/drivers/block/ps2esdi.c b/drivers/block/ps2esdi.c
index 688a4fb..96b40bc 100644
--- a/drivers/block/ps2esdi.c
+++ b/drivers/block/ps2esdi.c
@@ -94,7 +94,7 @@ static u_int dma_arb_level;		/* DMA arbitration level */
 
 static DECLARE_WAIT_QUEUE_HEAD(ps2esdi_int);
 
-static int no_int_yet;
+static bool no_int_yet;
 static int ps2esdi_drives;
 static u_short io_base;
 static DEFINE_TIMER(esdi_timer, ps2esdi_reset_timer, 0, 0);
@@ -455,7 +455,7 @@ static void __init ps2esdi_get_device_cfg(void)
 	current_int_handler = ps2esdi_geometry_int_handler;
 	cmd_blk[0] = CMD_GET_DEV_CONFIG | 0x600;
 	cmd_blk[1] = 0;
-	no_int_yet = TRUE;
+	no_int_yet = true;
 	ps2esdi_out_cmd_blk(cmd_blk);
 	if (no_int_yet)
 		sleep_on(&ps2esdi_int);
@@ -464,7 +464,7 @@ static void __init ps2esdi_get_device_cfg(void)
 		printk("%s: Drive 1\n", DEVICE_NAME);	/*BA */
 		cmd_blk[0] = CMD_GET_DEV_CONFIG | (1 << 5) | 0x600;
 		cmd_blk[1] = 0;
-		no_int_yet = TRUE;
+		no_int_yet = true;
 		ps2esdi_out_cmd_blk(cmd_blk);
 		if (no_int_yet)
 			sleep_on(&ps2esdi_int);
@@ -843,7 +843,7 @@ static void ps2esdi_geometry_int_handler(u_int int_ret_code)
 	}
 
 	wake_up(&ps2esdi_int);
-	no_int_yet = FALSE;
+	no_int_yet = false;
 	outb(CTRL_ENABLE_INTR, ESDI_CONTROL);
 
 }
diff --git a/drivers/block/z2ram.c b/drivers/block/z2ram.c
index 7cc2685..2abf94c 100644
--- a/drivers/block/z2ram.c
+++ b/drivers/block/z2ram.c
@@ -44,9 +44,6 @@
 extern int m68k_realnum_memory;
 extern struct mem_info m68k_memory[NUM_MEMINFO];
 
-#define TRUE                  (1)
-#define FALSE                 (0)
-
 #define Z2MINOR_COMBINED      (0)
 #define Z2MINOR_Z2ONLY        (1)
 #define Z2MINOR_CHIPONLY      (2)

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] block: Convert to generic boolean
  2007-05-01 19:08 [PATCH] block: Convert to generic boolean Richard Knutsson
@ 2007-05-01 20:26 ` Alan Cox
  2007-05-01 21:35   ` Richard Knutsson
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Cox @ 2007-05-01 20:26 UTC (permalink / raw)
  To: Richard Knutsson; +Cc: axboe, linux-kernel, Richard Knutsson

On Tue, 1 May 2007 21:08:36 +0200 (MEST)
Richard Knutsson <ricknu-0@student.ltu.se> wrote:

> Convert to generic boolean
> 
> Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se>
> ---
> Compile-tested but most arch/conf tested failed for other reasons then this
> Diffed against Linus' git-tree.

If you can't build test stuff like ps2esdi then its best to leave it
alone - we know the old driver code works/worked and in a few years even
James won't have any working PS/2 hardware left

Alan

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] block: Convert to generic boolean
  2007-05-01 20:26 ` Alan Cox
@ 2007-05-01 21:35   ` Richard Knutsson
  0 siblings, 0 replies; 3+ messages in thread
From: Richard Knutsson @ 2007-05-01 21:35 UTC (permalink / raw)
  To: Alan Cox; +Cc: axboe, linux-kernel

Alan Cox wrote:
> On Tue, 1 May 2007 21:08:36 +0200 (MEST)
> Richard Knutsson <ricknu-0@student.ltu.se> wrote:
>
>   
>> Convert to generic boolean
>>
>> Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se>
>> ---
>> Compile-tested but most arch/conf tested failed for other reasons then this
>> Diffed against Linus' git-tree.
>>     
>
> If you can't build test stuff like ps2esdi then its best to leave it
> alone - we know the old driver code works/worked and in a few years even
> James won't have any working PS/2 hardware left
>   
Just thought the patch is so trivial that it obviously is "correct".

Richard Knutsson


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-05-01 21:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-01 19:08 [PATCH] block: Convert to generic boolean Richard Knutsson
2007-05-01 20:26 ` Alan Cox
2007-05-01 21:35   ` Richard Knutsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox