login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
May
»
21
Re: [PATCH] or51132.c: unaligned
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Harvey Harrison
Subject:
Re: [PATCH] or51132.c: unaligned
Date: Tuesday, May 20, 2008 - 5:41 pm
On Wed, 2008-05-21 at 01:33 +0100, Al Viro wrote:
quoted text
> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> > --- > drivers/media/dvb/frontends/or51132.c | 6 +++--- > 1 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/media/dvb/frontends/or51132.c b/drivers/media/dvb/frontends/or51132.c > index c7b5785..5ed3254 100644 > --- a/drivers/media/dvb/frontends/or51132.c > +++ b/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);
return get_unaligned_le16(buf);
quoted text
> } > > 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));
firmwareAsize = le32_to_cpup((__le32 *)fw->data);
quoted text
> dprintk("FirmwareA is %i bytes\n",firmwareAsize); > - firmwareBsize = le32_to_cpu(*((u32*)(fw->data+4))); > + firmwareBsize = le32_to_cpu(*((__le32*)(fw->data+4)));
firmwareBsize = le32_to_cpup((__le32 *)(fw->data + 4)); Cheers, Harvey --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] or51132.c: unaligned
, Al Viro
, (Tue May 20, 5:33 pm)
Re: [PATCH] or51132.c: unaligned
, Harvey Harrison
, (Tue May 20, 5:41 pm)
Re: [PATCH] or51132.c: unaligned
, Al Viro
, (Tue May 20, 5:45 pm)
Re: [PATCH] or51132.c: unaligned
, Harvey Harrison
, (Tue May 20, 5:51 pm)
Re: [PATCH] or51132.c: unaligned
, Linus Torvalds
, (Tue May 20, 5:55 pm)
Re: [PATCH] or51132.c: unaligned
, Al Viro
, (Tue May 20, 5:56 pm)
Re: [PATCH] or51132.c: unaligned
, Al Viro
, (Tue May 20, 6:18 pm)
Re: [PATCH] or51132.c: unaligned
, Linus Torvalds
, (Tue May 20, 7:02 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
swhiteho
[PATCH 42/51] [GFS2] Move inode deletion out of blocking_cb
FUJITA Tomonori
Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel
Benjamin Herrenschmidt
[git pull] Please pull powerpc.git merge branch
Ingo Molnar
Re: [RFC/RFT PATCH] sched: automated per tty task groups
Vivek Goyal
Re: [PATCH v4] sched: automated per session task groups
git
:
Mike Miller
git message
Junio C Hamano
Re: [PATCH] Detached HEAD (experimental)
Stefan Richter
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
Jeff King
Re: [PATCH] t7004: test that "git-tag -u" implies "-s"
Paolo Ciarrocchi
Re: [RFC] GIT user survey
git-commits-head
:
Linux Kernel Mailing List
libata: disable ATAPI AN by default
Linux Kernel Mailing List
i915: Don't whine when pci_enable_msi() fails.
Linux Kernel Mailing List
Documentation/timers/hpet_example.c: only build on X86
Linux Kernel Mailing List
kbuild: move bounds.h to include/generated
Linux Kernel Mailing List
i2c: Fix probing of FSC hardware monitoring chips
linux-netdev
:
Arnaldo Carvalho de Melo
Re: [PATCH 06/37] dccp: Limit feature negotiation to connection setup phase
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Jeff Garzik
Re: [PATCH] drivers/net: remove network drivers' last few uses of IRQF_SAMPLE_RANDOM
David Miller
Re: [PATCH 2/5] dccp: Auto-load (when supported) CCID plugins for negotiation
Chuck Lever
Re: svc: failed to register lockdv1 RPC service (errno 97).
openbsd-misc
:
Stuart Henderson
Re: Kuro5hin: OpenBSD Founder Theo deRaadt Has Conflict of Interest With AMD
Christian Weisgerber
Re: CARP with a single public IP address
Marco Peereboom
Re: OpenBSD culture?
"RALOVICH, Kristóf"
Re: thinkpad windows refund
Kevin
Re: uvm_mapent_alloc: out of static map entries on 4.3 i386
Colocation donated by:
Syndicate