/* @dev: the OSD device whose control register to set @value: the 16-bit value to write to the control register Return: 0  */
static int set_control(struct udevice *dev, u16 value)
/* @dev: the OSD device whose control register to set @value: the 16-bit value to write to the control register Return: 0  */
static int set_control(struct udevice *dev, u16 value)
{
	struct ihs_video_out_priv *priv = dev_get_priv(dev);
	if (priv->sync_src)
		value |= ((priv->sync_src & 0x7) << 8);
	ihs_video_out_set(priv->map, control, value);
	return 0;
}