/* NOTE: the explicit equation above is reduced. Do not try to infer anything from these numbers.  */
static int parse_pixclock(char *pixclock)
/* NOTE: the explicit equation above is reduced. Do not try to infer anything from these numbers.  */
static int parse_pixclock(char *pixclock)
{
	int divisor, pixclock_val;
	char *pixclk_start = pixclock;
	pixclock_val = simple_strtoul(pixclock, &pixclock, 10);
	divisor = DIV_ROUND_UP(PIXEL_CLK_NUMERATOR, pixclock_val);
	if (divisor <= 1)
		divisor = 2;
	panel_cfg.divisor = divisor | (1 << 16);
	if (pixclock[0] != '\0') {
		printf("LCD: invalid value for pixclock:%s\n", pixclk_start);
		return -1;
	}
	return 0;
}