diff options
author | Frank Schaefer <fschaefer.oss@googlemail.com> | 2013-03-03 13:37:40 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-04 14:20:51 -0500 |
commit | 87b52439cff4a8b745f419b9e99fa68a5533c342 (patch) | |
tree | 4712554f8b3266b98f3db71375d6139b30d9fc93 /drivers/media/usb/em28xx/em28xx.h | |
parent | 0c28dcc054ecbcd16e197bd9bf9b394cc1f691c5 (diff) |
[media] em28xx: add basic support for eeproms with 16 bit address width
Newer devices (em2874, em2884, em28174, em25xx, em27[6,7,8]x) use eeproms with
16 bit instead of 8 bit address width.
The used eeprom type depends on the chip type, which makes sure eeproms can't
be damaged.
This patch adds basic support for 16 bit eeproms only, which includes
- reading the content
- calculating the eeprom hash
- displaying the content
The eeprom content uses a different format, for which support will be added with
subsequent patches.
Tested with the "Hauppauge HVR-930C" and the "Speedlink VAD Laplace webcam"
(with additional experimental patches).
Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/usb/em28xx/em28xx.h')
-rw-r--r-- | drivers/media/usb/em28xx/em28xx.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/usb/em28xx/em28xx.h b/drivers/media/usb/em28xx/em28xx.h index 90266a1e7957..139dfe54a057 100644 --- a/drivers/media/usb/em28xx/em28xx.h +++ b/drivers/media/usb/em28xx/em28xx.h | |||
@@ -510,6 +510,7 @@ struct em28xx { | |||
510 | /* i2c i/o */ | 510 | /* i2c i/o */ |
511 | struct i2c_adapter i2c_adap; | 511 | struct i2c_adapter i2c_adap; |
512 | struct i2c_client i2c_client; | 512 | struct i2c_client i2c_client; |
513 | unsigned char eeprom_addrwidth_16bit:1; | ||
513 | /* video for linux */ | 514 | /* video for linux */ |
514 | int users; /* user count for exclusive use */ | 515 | int users; /* user count for exclusive use */ |
515 | int streaming_users; /* Number of actively streaming users */ | 516 | int streaming_users; /* Number of actively streaming users */ |