/* Step up spinner data. 
This function steps up the data, making sure it does not go beyond the upper limit. Wraps around if it does. */
static void gfx_mono_spinctrl_step_up(struct gfx_mono_spinctrl *spinner)
/* Step up spinner data. 
This function steps up the data, making sure it does not go beyond the upper limit. Wraps around if it does. */
static void gfx_mono_spinctrl_step_up(struct gfx_mono_spinctrl *spinner)
{
	if (spinner->datatype == SPINTYPE_INTEGER) {
		if (spinner->integer_data < spinner->upper_limit) {
			spinner->integer_data++;
		} else {
			spinner->integer_data = spinner->lower_limit;
		}
	} else if (spinner->datatype == SPINTYPE_STRING) {
		if (spinner->strings.index < spinner->upper_limit) {
			spinner->strings.index++;
		} else {
			(spinner->strings.index) = spinner->lower_limit;
		}
	}
}