/**
 * set_rtas_indicator_state - Set an indicator to a new state (on or off)
 *
 * Call the appropriate routine for setting indicators based on the type
 * of indicator.
 *
 * @indicator	identification or attention indicator
 * @loc		location code of rtas indicator
 * @new_value	value to update indicator to
 *
 * Returns :
 *	indicator return code
 */
static int
set_rtas_indicator_state(int indicator, struct loc_code *loc, int new_value)
{
	switch (loc->type) {
	case TYPE_RTAS:
		return set_rtas_indicator(indicator, loc, new_value);
	case TYPE_SES:
		return set_ses_indicator(indicator, loc, new_value);
	default:
		break;
	}

	return -1;
}
/**
 * opal_set_indicator_state - Set an indicator to a new state (on or off)
 *
 * Call the appropriate routine for setting indicators based on the type
 * of indicator.
 *
 * @indicator	identification or attention indicator
 * @loc		location code of opal indicator
 * @new_value	value to update indicator to
 *
 * Returns :
 *	indicator return code
 */
static int
opal_set_indicator_state(int indicator, struct loc_code *loc, int new_value)
{
	switch (loc->type) {
	case TYPE_OPAL:
		return opal_set_indicator(loc, new_value);
	case TYPE_SES:
		return set_ses_indicator(indicator, loc, new_value);
	case TYPE_MARVELL:
		return set_mv_indicator(indicator, loc, new_value);
	default:
		break;
	}

	return -1;
}