diff options
author | Mauro Carvalho Chehab | 2010-06-03 21:31:20 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab | 2010-08-02 19:05:52 +0200 |
commit | 39e1256bc4b85145b9db392e49a71cad43f6903b (patch) | |
tree | 26859d818584ff840d9574957abad2caf2056e7f /drivers/staging/tm6000/tm6000.h | |
parent | V4L/DVB: tm6000-alsa: rework audio buffer allocation/deallocation (diff) | |
download | kernel-qcow2-linux-39e1256bc4b85145b9db392e49a71cad43f6903b.tar.gz kernel-qcow2-linux-39e1256bc4b85145b9db392e49a71cad43f6903b.tar.xz kernel-qcow2-linux-39e1256bc4b85145b9db392e49a71cad43f6903b.zip |
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>
Diffstat (limited to 'drivers/staging/tm6000/tm6000.h')
-rw-r--r-- | drivers/staging/tm6000/tm6000.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/staging/tm6000/tm6000.h b/drivers/staging/tm6000/tm6000.h index a1d96d619734..8fccf3e4d8f6 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 *); }; |