]> git.baikalelectronics.ru Git - kernel.git/commit
[media] em28xx: fix eeprom data endianess
authorFrank Schaefer <fschaefer.oss@googlemail.com>
Sun, 3 Mar 2013 18:37:38 +0000 (15:37 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 4 Mar 2013 18:53:54 +0000 (15:53 -0300)
commitde4fd5b17f745c0e047ddc8deadd7cc96176a9a9
tree98bd83a09396675cd9d17bb77c59c8eac0e629c5
parent569b5a482248b0a95baacfc68e3bf11b6051cf60
[media] em28xx: fix eeprom data endianess

The data is stored as little endian in the eeprom.
Hence the correct data types should be used and the data should be converted
to the machine endianess before using it.
The eeprom id (key) also isn't a 32 bit value but 4 separate bytes instead.

[mchehab@redhat.com: Fix CodingStyle]
Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/em28xx/em28xx-i2c.c
drivers/media/usb/em28xx/em28xx.h