/* ladder_do_selection - prepares private data for a state change @ldev: the ladder device @old_idx: the current state index @new_idx: the new target state index  */
static void ladder_do_selection(struct ladder_device *ldev, int old_idx, int new_idx)
/* ladder_do_selection - prepares private data for a state change @ldev: the ladder device @old_idx: the current state index @new_idx: the new target state index  */
static void ladder_do_selection(struct ladder_device *ldev, int old_idx, int new_idx)
{
	ldev->states[old_idx].stats.promotion_count = 0;
	ldev->states[old_idx].stats.demotion_count = 0;
	ldev->last_state_idx = new_idx;
}