/* ixgbe_led_off_generic - Turns off the software controllable LEDs. @hw: pointer to hardware structure @index: led number to turn off  */
s32 ixgbe_led_off_generic(struct ixgbe_hw *hw, u32 index)
/* ixgbe_led_off_generic - Turns off the software controllable LEDs. @hw: pointer to hardware structure @index: led number to turn off  */
s32 ixgbe_led_off_generic(struct ixgbe_hw *hw, u32 index)
{
	u32 led_reg = IXGBE_READ_REG(hw, IXGBE_LEDCTL);
	led_reg &= ~IXGBE_LED_MODE_MASK(index);
	led_reg |= IXGBE_LED_OFF << IXGBE_LED_MODE_SHIFT(index);
	IXGBE_WRITE_REG(hw, IXGBE_LEDCTL, led_reg);
	IXGBE_WRITE_FLUSH(hw);
	return 0;
}