# Re: \[PATCH v10 6/6\] drm\_modes: add of\_videomode helpers

- From: Thierry Reding \<hidden\>
- Date: 2012-11-15 09:58:49 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2012/11/8065492
- Thread: https://ratatoskr.run/dri-devel/2012/11/8065492/t.md

```text
On Thu, Nov 15, 2012 at 10:23:57AM +0100, Steffen Trumtrar wrote:
[...]
> +int of_get_drm_display_mode(struct device_node *np,
> +			    struct drm_display_mode *dmode, unsigned int index)
> +{
> +	struct videomode vm;
> +	int ret;
> +
> +	ret = of_get_videomode(np, &vm, index);
> +	if (ret)
> +		return ret;
> +
> +	display_mode_from_videomode(&vm, dmode);

This function is now called drm_display_mode_from_videomode().

Thierry
```

## Attachments

- [(unnamed)](https://ratatoskr.run/linux-fbdev/2012/11/8065492/attachment/0) (application/pgp-signature, 836 bytes)
