/* Read the EEPROM for the current default LED configuration. If the LED configuration is not valid, set to a valid LED configuration.  */
s32 e1000e_valid_led_default(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.  */
s32 e1000e_valid_led_default(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;
	}
	if (*data == ID_LED_RESERVED_0000 || *data == ID_LED_RESERVED_FFFF)
		*data = ID_LED_DEFAULT;
	return 0;
}