RC632: don't use RFID_14443A_SPEED_???K to index linear array

The RFID_14443A_SPEED_???K are defined as 0x01, 0x02, 0x04, 0x08 to
allow for bitmasks, thus we cannot directly use them to index an
array.  Instead we now use named array initializers

Thanks to Gianni Tedesco for spotting this.
This commit is contained in:
Harald Welte 2011-04-08 13:49:06 +02:00
parent b857329210
commit 5a28ec07f4
1 changed files with 4 additions and 4 deletions

View File

@ -1201,19 +1201,19 @@ static struct rx_config rx_configs[] = {
};
static struct tx_config tx_configs[] = {
{
[RFID_14443A_SPEED_106K] = {
.rate = RC632_CDRCTRL_RATE_106K,
.mod_width = 0x13,
},
{
[RFID_14443A_SPEED_212K] = {
.rate = RC632_CDRCTRL_RATE_212K,
.mod_width = 0x07,
},
{
[RFID_14443A_SPEED_424K] = {
.rate = RC632_CDRCTRL_RATE_424K,
.mod_width = 0x03,
},
{
[RFID_14443A_SPEED_848K] = {
.rate = RC632_CDRCTRL_RATE_848K,
.mod_width = 0x01,
},