mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: linux-kernel@vger.kernel.org
Cc: Karsten Keil <isdn@linux-pingi.de>
Subject: [PATCH 2/3] drivers/isdn/mISDN/dsp_ecdis.h: Remove #define TRUE/FALSE, use bool
Date: Tue, 12 Jan 2010 22:59:14 -0800	[thread overview]
Message-ID: <eaa8e362c14cb76129d60b401bd7fa8d94dd742a.1263365754.git.joe@perches.com> (raw)
In-Reply-To: <cover.1263365754.git.joe@perches.com>

Signed-off-by: Joe Perches <joe@perches.com>
---
 drivers/isdn/mISDN/dsp_ecdis.h |   20 ++++++++------------
 1 files changed, 8 insertions(+), 12 deletions(-)

diff --git a/drivers/isdn/mISDN/dsp_ecdis.h b/drivers/isdn/mISDN/dsp_ecdis.h
index 21dbd15..4a927b3 100644
--- a/drivers/isdn/mISDN/dsp_ecdis.h
+++ b/drivers/isdn/mISDN/dsp_ecdis.h
@@ -33,16 +33,12 @@ struct ec_disable_detector_state {
 	struct biquad2_state notch;
 	int notch_level;
 	int channel_level;
-	int tone_present;
+	bool tone_present;
+	bool hit;
 	int tone_cycle_duration;
 	int good_cycles;
-	int hit;
 };
 
-
-#define FALSE 0
-#define TRUE (!FALSE)
-
 static inline void
 echo_can_disable_detector_init(struct ec_disable_detector_state *det)
 {
@@ -58,10 +54,10 @@ echo_can_disable_detector_init(struct ec_disable_detector_state *det)
 
 	det->channel_level = 0;
 	det->notch_level = 0;
-	det->tone_present = FALSE;
+	det->tone_present = false;
+	det->hit = false;
 	det->tone_cycle_duration = 0;
 	det->good_cycles = 0;
-	det->hit = 0;
 }
 /*- End of function --------------------------------------------------------*/
 
@@ -91,16 +87,16 @@ int16_t amp)
 					&& det->tone_cycle_duration <= 475*8) {
 					det->good_cycles++;
 					if (det->good_cycles > 2)
-						det->hit = TRUE;
+						det->hit = true;
 				}
 				det->tone_cycle_duration = 0;
 			}
-			det->tone_present = TRUE;
+			det->tone_present = true;
 		} else
-			det->tone_present = FALSE;
+			det->tone_present = false;
 		det->tone_cycle_duration++;
 	} else {
-		det->tone_present = FALSE;
+		det->tone_present = false;
 		det->tone_cycle_duration = 0;
 		det->good_cycles = 0;
 	}
-- 
1.6.6.rc0.57.gad7a


  parent reply	other threads:[~2010-01-13  6:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-13  6:59 [PATCH 0/3] A few #define TRUE/FALSE removals Joe Perches
2010-01-13  6:59 ` [PATCH 1/3] drivers/net/tlan: Remove TRUE/FALSE defines, use bool Joe Perches
2010-01-14  4:40   ` David Miller
2010-01-13  6:59 ` Joe Perches [this message]
2010-01-13  6:59 ` [PATCH 3/3] drivers/media/dvb/frontends/si21xx.c: Remove #define TRUE/FALSE, " Joe Perches

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=eaa8e362c14cb76129d60b401bd7fa8d94dd742a.1263365754.git.joe@perches.com \
    --to=joe@perches.com \
    --cc=isdn@linux-pingi.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®