Skip to content

Commit

Permalink
V4L/DVB (10129): dvb: remove deprecated use of RW_LOCK_UNLOCKED in fr…
Browse files Browse the repository at this point in the history
…ontends

Impact: clean up

RW_LOCK_UNLOCKED is deprecated.  This patch replaces it with the
__RW_LOCK_UNLOCKED(lock) macro.  This change was a little trickier than
others due to the macro being used in another macro that fills an array.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Steven Rostedt authored and Mauro Carvalho Chehab committed Dec 30, 2008
1 parent aa16c10 commit cec7384
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions drivers/media/dvb/frontends/drx397xD.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ static const char mod_name[] = "drx397xD";
#define F_SET_0D4h 2

enum fw_ix {
#define _FW_ENTRY(a, b) b
#define _FW_ENTRY(a, b, c) b
#include "drx397xD_fw.h"
};

Expand Down Expand Up @@ -72,11 +72,11 @@ static struct {
int refcnt;
const u8 *data[ARRAY_SIZE(blob_name)];
} fw[] = {
#define _FW_ENTRY(a, b) { \
.name = a, \
.file = 0, \
.lock = RW_LOCK_UNLOCKED, \
.refcnt = 0, \
#define _FW_ENTRY(a, b, c) { \
.name = a, \
.file = 0, \
.lock = __RW_LOCK_UNLOCKED(fw[c].lock), \
.refcnt = 0, \
.data = { } }
#include "drx397xD_fw.h"
};
Expand Down
4 changes: 2 additions & 2 deletions drivers/media/dvb/frontends/drx397xD_fw.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/

#ifdef _FW_ENTRY
_FW_ENTRY("drx397xD.A2.fw", DRXD_FW_A2 = 0 ),
_FW_ENTRY("drx397xD.B1.fw", DRXD_FW_B1 ),
_FW_ENTRY("drx397xD.A2.fw", DRXD_FW_A2 = 0, DRXD_FW_A2 ),
_FW_ENTRY("drx397xD.B1.fw", DRXD_FW_B1, DRXD_FW_B1 ),
#undef _FW_ENTRY
#endif /* _FW_ENTRY */

Expand Down

0 comments on commit cec7384

Please sign in to comment.