On Sun, Jun 07, 2009 at 01:40:33PM +0200, Tobias Doerffel wrote: > +/* > + * Read RFKILL GPIO configuration from eeprom > + */ > +void ath5k_eeprom_read_rfkill(struct ath5k_hw *ah, u16 *gpio, u8 *polarity) > +{ > + u16 data; > + > + ath5k_hw_eeprom_read(ah, AR5K_EEPROM_RFKILL_GPIO_SEL, &data); > + *gpio = AR5K_REG_MS(data, AR5K_EEPROM_RFKILL_GPIO_SEL); > + > + ath5k_hw_eeprom_read(ah, AR5K_EEPROM_RFKILL_POLARITY, &data); > + *polarity = AR5K_REG_MS(data, AR5K_EEPROM_RFKILL_POLARITY); > +} ath5k_eeprom_init_header already reads these values and stuffs them in the ath5k_eeprom_info struct - you can just use them from there. Otherwise, mod Johanne's comment, looks great! Thanks for handling this. -- Bob Copeland %% www.bobcopeland.com -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html