diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2008-06-29 14:15:19 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-20 06:23:58 -0400 |
commit | b1d8f9f5b8036b61a7ec562dfb86361f5b18e8f2 (patch) | |
tree | 1c155fb17c1dc3d12753343ea55a65f252a15784 /drivers/media/dvb | |
parent | 4411d29165d83a4a73ea351ffccfdc0fd8baeb1e (diff) |
V4L/DVB (8310): sms1xxx: remove kmutex_t typedef
remove typedef struct mutex kmutex_t
fix one line > 80 columns
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r-- | drivers/media/dvb/siano/smscoreapi.c | 4 | ||||
-rw-r--r-- | drivers/media/dvb/siano/smscoreapi.h | 5 | ||||
-rw-r--r-- | drivers/media/dvb/siano/smsdvb.c | 2 |
3 files changed, 5 insertions, 6 deletions
diff --git a/drivers/media/dvb/siano/smscoreapi.c b/drivers/media/dvb/siano/smscoreapi.c index 1dd196600036..9e7730a40e0f 100644 --- a/drivers/media/dvb/siano/smscoreapi.c +++ b/drivers/media/dvb/siano/smscoreapi.c | |||
@@ -112,10 +112,10 @@ struct smscore_registry_entry_t { | |||
112 | 112 | ||
113 | struct list_head g_smscore_notifyees; | 113 | struct list_head g_smscore_notifyees; |
114 | struct list_head g_smscore_devices; | 114 | struct list_head g_smscore_devices; |
115 | kmutex_t g_smscore_deviceslock; | 115 | struct mutex g_smscore_deviceslock; |
116 | 116 | ||
117 | struct list_head g_smscore_registry; | 117 | struct list_head g_smscore_registry; |
118 | kmutex_t g_smscore_registrylock; | 118 | struct mutex g_smscore_registrylock; |
119 | 119 | ||
120 | static int default_mode = 4; | 120 | static int default_mode = 4; |
121 | 121 | ||
diff --git a/drivers/media/dvb/siano/smscoreapi.h b/drivers/media/dvb/siano/smscoreapi.h index eeb5c0a7f62b..fb6acaefcbc6 100644 --- a/drivers/media/dvb/siano/smscoreapi.h +++ b/drivers/media/dvb/siano/smscoreapi.h | |||
@@ -36,8 +36,6 @@ | |||
36 | 36 | ||
37 | #include <linux/mutex.h> | 37 | #include <linux/mutex.h> |
38 | 38 | ||
39 | typedef struct mutex kmutex_t; | ||
40 | |||
41 | #define kmutex_init(_p_) mutex_init(_p_) | 39 | #define kmutex_init(_p_) mutex_init(_p_) |
42 | #define kmutex_lock(_p_) mutex_lock(_p_) | 40 | #define kmutex_lock(_p_) mutex_lock(_p_) |
43 | #define kmutex_trylock(_p_) mutex_trylock(_p_) | 41 | #define kmutex_trylock(_p_) mutex_trylock(_p_) |
@@ -392,7 +390,8 @@ extern void smscore_onresponse(struct smscore_device_t *coredev, | |||
392 | struct smscore_buffer_t *cb); | 390 | struct smscore_buffer_t *cb); |
393 | 391 | ||
394 | 392 | ||
395 | extern struct smscore_buffer_t *smscore_getbuffer(struct smscore_device_t *coredev); | 393 | extern |
394 | struct smscore_buffer_t *smscore_getbuffer(struct smscore_device_t *coredev); | ||
396 | extern void smscore_putbuffer(struct smscore_device_t *coredev, | 395 | extern void smscore_putbuffer(struct smscore_device_t *coredev, |
397 | struct smscore_buffer_t *cb); | 396 | struct smscore_buffer_t *cb); |
398 | 397 | ||
diff --git a/drivers/media/dvb/siano/smsdvb.c b/drivers/media/dvb/siano/smsdvb.c index 72d1de7a6dea..6f9c18563867 100644 --- a/drivers/media/dvb/siano/smsdvb.c +++ b/drivers/media/dvb/siano/smsdvb.c | |||
@@ -28,7 +28,7 @@ | |||
28 | DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr); | 28 | DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr); |
29 | 29 | ||
30 | struct list_head g_smsdvb_clients; | 30 | struct list_head g_smsdvb_clients; |
31 | kmutex_t g_smsdvb_clientslock; | 31 | struct mutex g_smsdvb_clientslock; |
32 | 32 | ||
33 | static int smsdvb_onresponse(void *context, struct smscore_buffer_t *cb) | 33 | static int smsdvb_onresponse(void *context, struct smscore_buffer_t *cb) |
34 | { | 34 | { |