/* switch_leds - switch the leds, go from one site to the other. @ctrl: controller to use @num_of_slots: number of slots to use @work_LED: LED control value @direction: 1 to start from the left side, 0 to start right.  */
static void switch_leds(struct controller *ctrl, const int num_of_slots, u32 *work_LED, const int direction)
/* switch_leds - switch the leds, go from one site to the other. @ctrl: controller to use @num_of_slots: number of slots to use @work_LED: LED control value @direction: 1 to start from the left side, 0 to start right.  */
static void switch_leds(struct controller *ctrl, const int num_of_slots, u32 *work_LED, const int direction)
{
	int loop;
	for (loop = 0; loop < num_of_slots; loop++) {
		if (direction)
			*work_LED = *work_LED >> 1;
		else
			*work_LED = *work_LED << 1;
		writel(*work_LED, ctrl->hpc_reg + LED_CONTROL);
		set_SOGO(ctrl);
		wait_for_ctrl_irq(ctrl);
		long_delay((2*HZ)/10);
	}
}