~ubuntu-branches/ubuntu/quantal/linux-lowlatency/quantal-proposed

« back to all changes in this revision

Viewing changes to drivers/media/video/cx18/cx18-firmware.c

  • Committer: Package Import Robot
  • Author(s): Andy Whitcroft, Andy Whitcroft, Ubuntu: 3.5.0-3.3
  • Date: 2012-07-03 09:23:14 UTC
  • Revision ID: package-import@ubuntu.com-20120703092314-wjaqz3coxptokmtl
Tags: 3.5.0-3.3
[ Andy Whitcroft ]

* [Config] drop -pae from d-i configuration.
* rebase to Ubuntu-3.5.0-3.3

[ Ubuntu: 3.5.0-3.3 ]

* [Config] enable CONFIG_MEMTEST=y
  - LP: #1004535
* [Config] config-check: add support for a cut operation
* [Config] enforcer -- switch to cut where appropriate
* Rebase to v3.5-rc5
* [Config] Updateconfigs after rebase to v3.5-rc5
* SAUCE: ocfs2: Fix NULL pointer dereferrence in
  __ocfs2_change_file_space
  - LP: #1006012
* SAUCE: (drop after 3.5) drm/i915: ignore pipe select bit when checking
  for LVDS register initialization
  - LP: #1012800
* rebase to v3.5-rc5
  - LP: #1013183
  - LP: #1017017
  - LP: #884652

Show diffs side-by-side

added added

removed removed

Lines of Context:
164
164
 
165
165
        apu_version = (vers[0] << 24) | (vers[4] << 16) | vers[32];
166
166
        while (offset + sizeof(seghdr) < fw->size) {
167
 
                /* TODO: byteswapping */
168
 
                memcpy(&seghdr, src + offset / 4, sizeof(seghdr));
 
167
                const u32 *shptr = src + offset / 4;
 
168
 
 
169
                seghdr.sync1 = le32_to_cpu(shptr[0]);
 
170
                seghdr.sync2 = le32_to_cpu(shptr[1]);
 
171
                seghdr.addr = le32_to_cpu(shptr[2]);
 
172
                seghdr.size = le32_to_cpu(shptr[3]);
 
173
 
169
174
                offset += sizeof(seghdr);
170
175
                if (seghdr.sync1 != APU_ROM_SYNC1 ||
171
176
                    seghdr.sync2 != APU_ROM_SYNC2) {