diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-06-03 16:31:20 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-08-02 14:05:52 -0300 |
commit | 39e1256bc4b85145b9db392e49a71cad43f6903b (patch) | |
tree | 26859d818584ff840d9574957abad2caf2056e7f | |
parent | 54b78608c6f4a30b4d64ec17bc36636c2a081506 (diff) | |
download | kernel_samsung_crespo-39e1256bc4b85145b9db392e49a71cad43f6903b.zip kernel_samsung_crespo-39e1256bc4b85145b9db392e49a71cad43f6903b.tar.gz kernel_samsung_crespo-39e1256bc4b85145b9db392e49a71cad43f6903b.tar.bz2 |
V4L/DVB: tm6000: Use an enum for extension type
In order to better document and be sure that the values are used
at the proper places, convert extension type into an enum and
name it as "type", instead of "id".
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/staging/tm6000/tm6000-alsa.c | 2 | ||||
-rw-r--r-- | drivers/staging/tm6000/tm6000-dvb.c | 2 | ||||
-rw-r--r-- | drivers/staging/tm6000/tm6000.h | 8 |
3 files changed, 7 insertions, 5 deletions
diff --git a/drivers/staging/tm6000/tm6000-alsa.c b/drivers/staging/tm6000/tm6000-alsa.c index 745f8de..de5e78d 100644 --- a/drivers/staging/tm6000/tm6000-alsa.c +++ b/drivers/staging/tm6000/tm6000-alsa.c @@ -392,7 +392,7 @@ static int tm6000_audio_fini(struct tm6000_core *dev) } struct tm6000_ops audio_ops = { - .id = TM6000_AUDIO, + .type = TM6000_AUDIO, .name = "TM6000 Audio Extension", .init = tm6000_audio_init, .fini = tm6000_audio_fini, diff --git a/drivers/staging/tm6000/tm6000-dvb.c b/drivers/staging/tm6000/tm6000-dvb.c index d3529ae..f501edc 100644 --- a/drivers/staging/tm6000/tm6000-dvb.c +++ b/drivers/staging/tm6000/tm6000-dvb.c @@ -432,7 +432,7 @@ static int dvb_fini(struct tm6000_core *dev) } static struct tm6000_ops dvb_ops = { - .id = TM6000_DVB, + .type = TM6000_DVB, .name = "TM6000 dvb Extension", .init = dvb_init, .fini = dvb_fini, diff --git a/drivers/staging/tm6000/tm6000.h b/drivers/staging/tm6000/tm6000.h index a1d96d6..8fccf3e 100644 --- a/drivers/staging/tm6000/tm6000.h +++ b/drivers/staging/tm6000/tm6000.h @@ -218,13 +218,15 @@ struct tm6000_core { spinlock_t slock; }; -#define TM6000_AUDIO 0x10 -#define TM6000_DVB 0x20 +enum tm6000_ops_type { + TM6000_AUDIO = 0x10, + TM6000_DVB = 0x20, +}; struct tm6000_ops { struct list_head next; char *name; - int id; + enum tm6000_ops_type type; int (*init)(struct tm6000_core *); int (*fini)(struct tm6000_core *); }; |