/* @osdnum: The OSD device to be selected, identified by its sequence number. Return: 0 if OK, -ve on error  */
static int cmd_osd_set_osd_num(unsigned int osdnum)
/* @osdnum: The OSD device to be selected, identified by its sequence number. Return: 0 if OK, -ve on error  */
static int cmd_osd_set_osd_num(unsigned int osdnum)
{
	struct udevice *osd;
	int res;
	res = uclass_get_device_by_seq(UCLASS_VIDEO_OSD, osdnum, &osd);
	if (res) {
		printf("%s: No OSD %u (err = %d)\n", __func__, osdnum, res);
		return res;
	}
	osd_cur = osd;
	return 0;
}