/* Reads the LED default settings from the NVM to data. If the NVM LED settings is all 0's or F's, set the LED default to a valid LED default setting.  */
static s32 e1000_valid_led_default_ich8lan(struct e1000_hw *hw, u16 *data)
/* Reads the LED default settings from the NVM to data. If the NVM LED settings is all 0's or F's, set the LED default to a valid LED default setting.  */
static s32 e1000_valid_led_default_ich8lan(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_ICH8LAN;
	return 0;
}