Commit 52253031 authored by Jan Kiszka's avatar Jan Kiszka Committed by David S. Miller

CAPI: Call a controller 'controller', not 'card'

At least for our internal use, fix the misnomers that refer to a CAPI
controller as 'card'. No functional changes.
Signed-off-by: default avatarJan Kiszka <jan.kiszka@web.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 88549d6b
This diff is collapsed.
...@@ -24,16 +24,16 @@ printk(KERN_DEBUG "%s: " format "\n" , __func__ , ## arg); \ ...@@ -24,16 +24,16 @@ printk(KERN_DEBUG "%s: " format "\n" , __func__ , ## arg); \
#endif #endif
enum { enum {
CARD_DETECTED = 1, CAPI_CTR_DETECTED = 1,
CARD_LOADING = 2, CAPI_CTR_LOADING = 2,
CARD_RUNNING = 3, CAPI_CTR_RUNNING = 3,
}; };
extern struct list_head capi_drivers; extern struct list_head capi_drivers;
extern rwlock_t capi_drivers_list_lock; extern rwlock_t capi_drivers_list_lock;
extern struct capi20_appl *capi_applications[CAPI_MAXAPPL]; extern struct capi20_appl *capi_applications[CAPI_MAXAPPL];
extern struct capi_ctr *capi_cards[CAPI_MAXCONTR]; extern struct capi_ctr *capi_controller[CAPI_MAXCONTR];
#ifdef CONFIG_PROC_FS #ifdef CONFIG_PROC_FS
......
...@@ -15,13 +15,12 @@ ...@@ -15,13 +15,12 @@
#include <linux/seq_file.h> #include <linux/seq_file.h>
#include <linux/init.h> #include <linux/init.h>
static char * static char *state2str(unsigned short state)
cardstate2str(unsigned short cardstate)
{ {
switch (cardstate) { switch (state) {
case CARD_DETECTED: return "detected"; case CAPI_CTR_DETECTED: return "detected";
case CARD_LOADING: return "loading"; case CAPI_CTR_LOADING: return "loading";
case CARD_RUNNING: return "running"; case CAPI_CTR_RUNNING: return "running";
default: return "???"; default: return "???";
} }
} }
...@@ -38,7 +37,7 @@ cardstate2str(unsigned short cardstate) ...@@ -38,7 +37,7 @@ cardstate2str(unsigned short cardstate)
static void *controller_start(struct seq_file *seq, loff_t *pos) static void *controller_start(struct seq_file *seq, loff_t *pos)
{ {
if (*pos < CAPI_MAXCONTR) if (*pos < CAPI_MAXCONTR)
return &capi_cards[*pos]; return &capi_controller[*pos];
return NULL; return NULL;
} }
...@@ -47,7 +46,7 @@ static void *controller_next(struct seq_file *seq, void *v, loff_t *pos) ...@@ -47,7 +46,7 @@ static void *controller_next(struct seq_file *seq, void *v, loff_t *pos)
{ {
++*pos; ++*pos;
if (*pos < CAPI_MAXCONTR) if (*pos < CAPI_MAXCONTR)
return &capi_cards[*pos]; return &capi_controller[*pos];
return NULL; return NULL;
} }
...@@ -65,7 +64,7 @@ static int controller_show(struct seq_file *seq, void *v) ...@@ -65,7 +64,7 @@ static int controller_show(struct seq_file *seq, void *v)
seq_printf(seq, "%d %-10s %-8s %-16s %s\n", seq_printf(seq, "%d %-10s %-8s %-16s %s\n",
ctr->cnr, ctr->driver_name, ctr->cnr, ctr->driver_name,
cardstate2str(ctr->cardstate), state2str(ctr->state),
ctr->name, ctr->name,
ctr->procinfo ? ctr->procinfo(ctr) : ""); ctr->procinfo ? ctr->procinfo(ctr) : "");
......
...@@ -66,7 +66,7 @@ struct capi_ctr { ...@@ -66,7 +66,7 @@ struct capi_ctr {
unsigned long nsentdatapkt; unsigned long nsentdatapkt;
int cnr; /* controller number */ int cnr; /* controller number */
volatile unsigned short cardstate; /* controller state */ volatile unsigned short state; /* controller state */
volatile int blocked; /* output blocked */ volatile int blocked; /* output blocked */
int traceflag; /* capi trace */ int traceflag; /* capi trace */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment