diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-06-03 14:51:08 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-06-03 14:51:08 -0300 |
commit | b0c4835ca205296ee6352bbe885582e2c546e2ce (patch) | |
tree | 44b80aaeb882ec990e143c72472e45b0f1a82cb4 /linux/drivers/media/dvb/frontends | |
parent | e92f78bc63e71d1572225b93b4ea0c31e6e6efc0 (diff) | |
parent | aec12fb2da90fde6ec9056cec90f9a65a8b02305 (diff) | |
download | mediapointer-dvb-s2-b0c4835ca205296ee6352bbe885582e2c546e2ce.tar.gz mediapointer-dvb-s2-b0c4835ca205296ee6352bbe885582e2c546e2ce.tar.bz2 |
apply backout changeset
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/dvb/frontends')
-rw-r--r-- | linux/drivers/media/dvb/frontends/or51132.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/drivers/media/dvb/frontends/or51132.c b/linux/drivers/media/dvb/frontends/or51132.c index c7b5785f8..5ed32544d 100644 --- a/linux/drivers/media/dvb/frontends/or51132.c +++ b/linux/drivers/media/dvb/frontends/or51132.c @@ -126,7 +126,7 @@ static int or51132_readreg(struct or51132_state *state, u8 reg) reg, err); return -EREMOTEIO; } - return le16_to_cpup((u16*)buf); + return buf[0] | (buf[1] << 8); } static int or51132_load_firmware (struct dvb_frontend* fe, const struct firmware *fw) @@ -140,9 +140,9 @@ static int or51132_load_firmware (struct dvb_frontend* fe, const struct firmware dprintk("Firmware is %Zd bytes\n",fw->size); /* Get size of firmware A and B */ - firmwareAsize = le32_to_cpu(*((u32*)fw->data)); + firmwareAsize = le32_to_cpu(*((__le32*)fw->data)); dprintk("FirmwareA is %i bytes\n",firmwareAsize); - firmwareBsize = le32_to_cpu(*((u32*)(fw->data+4))); + firmwareBsize = le32_to_cpu(*((__le32*)(fw->data+4))); dprintk("FirmwareB is %i bytes\n",firmwareBsize); /* Upload firmware */ |