# Re: \[PATCH v12 3/6\] fbmon: add videomode helpers

- From: Tomi Valkeinen \<hidden\>
- Date: 2012-11-21 12:27:45 
- List: linux-devicetree
- Page: https://ratatoskr.run/linux-devicetree/2012/11/8065876
- Thread: https://ratatoskr.run/linux-fbdev/2012/11/8065805/t.md

```text
On 2012-11-20 17:54, Steffen Trumtrar wrote:

> diff --git a/include/linux/fb.h b/include/linux/fb.h
> index c7a9571..920cbe3 100644
> --- a/include/linux/fb.h
> +++ b/include/linux/fb.h
> @@ -14,6 +14,7 @@
>  #include <linux/backlight.h>
>  #include <linux/slab.h>
>  #include <asm/io.h>
> +#include <linux/videomode.h>

No need for this, just add "struct xxx;".

>  struct vm_area_struct;
>  struct fb_info;
> @@ -714,6 +715,11 @@ extern void fb_destroy_modedb(struct fb_videomode *modedb);
>  extern int fb_find_mode_cvt(struct fb_videomode *mode, int margins, int rb);
>  extern unsigned char *fb_ddc_read(struct i2c_adapter *adapter);
>  
> +#if IS_ENABLED(CONFIG_VIDEOMODE)
> +extern int fb_videomode_from_videomode(const struct videomode *vm,
> +				       struct fb_videomode *fbmode);
> +#endif
> +
>  /* drivers/video/modedb.c */
>  #define VESA_MODEDB_SIZE 34
>  extern void fb_var_to_videomode(struct fb_videomode *mode,
> 


```

## Attachments

- [signature.asc](https://ratatoskr.run/linux-devicetree/2012/11/8065876/attachment/0) (application/pgp-signature, 897 bytes)
