forked from Minki/linux
[media] siano: store firmware version
As there are some changes that seem to be firmware-dependent, we need to store the firmware version, as we don't want to break support for existing cards that use a legacy (and sometimes custom) firmware. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
05f0ffbc48
commit
7333839505
@ -1359,6 +1359,8 @@ void smscore_onresponse(struct smscore_device_t *coredev,
|
||||
coredev->mode = ver->FirmwareId == 255 ?
|
||||
DEVICE_MODE_NONE : ver->FirmwareId;
|
||||
coredev->modes_supported = ver->SupportedProtocols;
|
||||
coredev->fw_version = ver->RomVersionMajor << 8 |
|
||||
ver->RomVersionMinor;
|
||||
|
||||
complete(&coredev->version_ex_done);
|
||||
break;
|
||||
|
@ -178,6 +178,7 @@ struct smscore_device_t {
|
||||
/* Firmware */
|
||||
u8 *fw_buf;
|
||||
u32 fw_buf_size;
|
||||
u16 fw_version;
|
||||
|
||||
/* Infrared (IR) */
|
||||
struct ir_t ir;
|
||||
|
Loading…
Reference in New Issue
Block a user