/* Reduce the vid by the max of step or reqvid. Decreasing vid codes represent increasing voltages: vid of 0 is 1.550V, vid of 0x1e is 0.800V, vid of VID_OFF is off.  */
static int decrease_vid_code_by_step(struct powernow_k8_data *data, u32 reqvid, u32 step)
/* Reduce the vid by the max of step or reqvid. Decreasing vid codes represent increasing voltages: vid of 0 is 1.550V, vid of 0x1e is 0.800V, vid of VID_OFF is off.  */
static int decrease_vid_code_by_step(struct powernow_k8_data *data, u32 reqvid, u32 step)
{
	if ((data->currvid - reqvid) > step)
		reqvid = data->currvid - step;
	if (write_new_vid(data, reqvid))
		return 1;
	count_off_vst(data);
	return 0;
}