summaryrefslogtreecommitdiff
path: root/drivers/dahdi/dahdi-base.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@digium.com>2008-08-02 04:38:56 +0000
committerRussell Bryant <russell@digium.com>2008-08-02 04:38:56 +0000
commit86c7bed560219a2774c0f21107d1d3a755ed7676 (patch)
treef4a7ba7782a8d7972b855820017882c227dd1253 /drivers/dahdi/dahdi-base.c
parentae32a166f483c9d89a8c66c51e82e475a7afa59b (diff)
convert a list of defines to an enum
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4657 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/dahdi-base.c')
-rw-r--r--drivers/dahdi/dahdi-base.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c
index 319e680..64fceca 100644
--- a/drivers/dahdi/dahdi-base.c
+++ b/drivers/dahdi/dahdi-base.c
@@ -226,8 +226,7 @@ static struct dahdi_span *master;
static struct file_operations dahdi_fops;
struct file_operations *dahdi_transcode_fops = NULL;
-static struct
-{
+static struct {
int src; /* source conf number */
int dst; /* dst conf number */
} conf_links[DAHDI_MAX_CONF + 1];
@@ -271,11 +270,13 @@ of the next sample chunk's data (next time around the world).
*/
-#define DIGIT_MODE_DTMF 0
-#define DIGIT_MODE_MFR1 1
-#define DIGIT_MODE_PULSE 2
-#define DIGIT_MODE_MFR2_FWD 3
-#define DIGIT_MODE_MFR2_REV 4
+enum dahdi_digit_mode {
+ DIGIT_MODE_DTMF,
+ DIGIT_MODE_MFR1,
+ DIGIT_MODE_PULSE,
+ DIGIT_MODE_MFR2_FWD,
+ DIGIT_MODE_MFR2_REV,
+};
#include "digits.h"