Skip to content

Commit

Permalink
V4L/DVB (8310): sms1xxx: remove kmutex_t typedef
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Jul 20, 2008
1 parent 4411d29 commit b1d8f9f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions drivers/media/dvb/siano/smscoreapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ struct smscore_registry_entry_t {

struct list_head g_smscore_notifyees;
struct list_head g_smscore_devices;
kmutex_t g_smscore_deviceslock;
struct mutex g_smscore_deviceslock;

struct list_head g_smscore_registry;
kmutex_t g_smscore_registrylock;
struct mutex g_smscore_registrylock;

static int default_mode = 4;

Expand Down
5 changes: 2 additions & 3 deletions drivers/media/dvb/siano/smscoreapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@

#include <linux/mutex.h>

typedef struct mutex kmutex_t;

#define kmutex_init(_p_) mutex_init(_p_)
#define kmutex_lock(_p_) mutex_lock(_p_)
#define kmutex_trylock(_p_) mutex_trylock(_p_)
Expand Down Expand Up @@ -392,7 +390,8 @@ extern void smscore_onresponse(struct smscore_device_t *coredev,
struct smscore_buffer_t *cb);


extern struct smscore_buffer_t *smscore_getbuffer(struct smscore_device_t *coredev);
extern
struct smscore_buffer_t *smscore_getbuffer(struct smscore_device_t *coredev);
extern void smscore_putbuffer(struct smscore_device_t *coredev,
struct smscore_buffer_t *cb);

Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb/siano/smsdvb.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr);

struct list_head g_smsdvb_clients;
kmutex_t g_smsdvb_clientslock;
struct mutex g_smsdvb_clientslock;

static int smsdvb_onresponse(void *context, struct smscore_buffer_t *cb)
{
Expand Down

0 comments on commit b1d8f9f

Please sign in to comment.