Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106691
b: refs/heads/master
c: e272ae0
h: refs/heads/master
i:
  106689: ff77d29
  106687: c3af47f
v: v3
  • Loading branch information
David Howells authored and Mauro Carvalho Chehab committed Jul 23, 2008
1 parent 405e4da commit a097388
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 22b0119e09d6e7d671535c61de27753a5e1a0a63
refs/heads/master: e272ae088fccf0e98ee0042392bd52a3455f28bd
8 changes: 4 additions & 4 deletions trunk/drivers/media/dvb/frontends/drx397xD.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ static struct {
const struct firmware *file;
rwlock_t lock;
int refcnt;
u8 *data[ARRAY_SIZE(blob_name)];
const u8 *data[ARRAY_SIZE(blob_name)];
} fw[] = {
#define _FW_ENTRY(a, b) { \
.name = a, \
Expand Down Expand Up @@ -109,7 +109,7 @@ static void drx_release_fw(struct drx397xD_state *s)

static int drx_load_fw(struct drx397xD_state *s, fw_ix_t ix)
{
u8 *data;
const u8 *data;
size_t size, len;
int i = 0, j, rc = -EINVAL;

Expand Down Expand Up @@ -193,7 +193,7 @@ static int drx_load_fw(struct drx397xD_state *s, fw_ix_t ix)
static int write_fw(struct drx397xD_state *s, blob_ix_t ix)
{
struct i2c_msg msg = {.addr = s->config.demod_address,.flags = 0 };
u8 *data;
const u8 *data;
int len, rc = 0, i = 0;

if (ix < 0 || ix >= ARRAY_SIZE(blob_name)) {
Expand All @@ -214,7 +214,7 @@ static int write_fw(struct drx397xD_state *s, blob_ix_t ix)
case 0: /* bytecode */
len = data[i++];
msg.len = len;
msg.buf = &data[i];
msg.buf = (__u8 *) &data[i];
if (i2c_transfer(s->i2c, &msg, 1) != 1) {
rc = -EIO;
goto exit_rc;
Expand Down

0 comments on commit a097388

Please sign in to comment.