/* Read the EEPROM for the current default LED configuration. If the LED configuration is not valid, set to a valid LED configuration.  */
static s32 e1000_valid_led_default_82571(struct e1000_hw *hw, u16 *data)
/* Read the EEPROM for the current default LED configuration. If the LED configuration is not valid, set to a valid LED configuration.  */
static s32 e1000_valid_led_default_82571(struct e1000_hw *hw, u16 *data)
{
	s32 ret_val;
	ret_val = e1000_read_nvm(hw, NVM_ID_LED_SETTINGS, 1, data);
	if (ret_val) {
		e_dbg("NVM Read Error\n");
		return ret_val;
	}
	switch (hw->mac.type) {
	case e1000_82573:
	case e1000_82574:
	case e1000_82583:
		if (*data == ID_LED_RESERVED_F746)
			*data = ID_LED_DEFAULT_82573;
		break;
	default:
		if (*data == ID_LED_RESERVED_0000 ||
		    *data == ID_LED_RESERVED_FFFF)
			*data = ID_LED_DEFAULT;
		break;
	}
	return 0;
}