Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 367129
b: refs/heads/master
c: 103fe2f
h: refs/heads/master
i:
  367127: 3a29189
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Apr 17, 2013
1 parent 73f4883 commit 1ff8f7a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: 884655ad2e85ebcd84b10b82fca2ef8e431d4392
refs/heads/master: 103fe2fb2314f09d9b923c5919e70cbe66830d6d
9 changes: 6 additions & 3 deletions trunk/drivers/media/tuners/r820t.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@
#include <linux/videodev2.h>
#include <linux/mutex.h>
#include <linux/slab.h>
#include "tuner-i2c.h"
#include <linux/bitrev.h>
#include <asm/div64.h>

#include "tuner-i2c.h"
#include "r820t.h"

/*
Expand Down Expand Up @@ -414,7 +416,7 @@ static int r820t_write_reg_mask(struct r820t_priv *priv, u8 reg, u8 val,

static int r820_read(struct r820t_priv *priv, u8 reg, u8 *val, int len)
{
int rc;
int rc, i;
u8 *p = &priv->buf[1];

priv->buf[0] = reg;
Expand All @@ -431,7 +433,8 @@ static int r820_read(struct r820t_priv *priv, u8 reg, u8 *val, int len)
__func__, reg, len, len, p);

/* Copy data to the output buffer */
memcpy(val, p, len);
for (i = 0; i < len; i++)
val[i] = bitrev8(p[i]);

return 0;
}
Expand Down

0 comments on commit 1ff8f7a

Please sign in to comment.