No subject
so the user should only be allowed to change the value to anything else than what is stored in the eeprom if we know it's a valid setting.
As far as I understand the EEPROM only stores a single value for the antenna-switch setting, i.e. if there multiple valid values these must come from somewhere else.
I don't know the exact electronic details of the implementation, so I'd go with a list of known-to-be-good values (passed to the driver via platform-data) instead of a causal check (e.g. don't allow to set the TX and RX to the same antenna or whatever you imagine to possibly be an invalid setting).
Cheers
Daniel