}
EXPORT_SYMBOL(adf_format_validate_yuv);
+/**
+ * adf_modeinfo_set_name - sets the name of a mode from its display resolution
+ *
+ * @mode: mode
+ *
+ * adf_modeinfo_set_name() fills in @mode->name in the format
+ * "[hdisplay]x[vdisplay](i)". It is intended to help drivers create
+ * ADF/DRM-style modelists from other mode formats.
+ */
void adf_modeinfo_set_name(struct drm_mode_modeinfo *mode)
{
bool interlaced = mode->flags & DRM_MODE_FLAG_INTERLACE;
mode->hdisplay, mode->vdisplay,
interlaced ? "i" : "");
}
+EXPORT_SYMBOL(adf_modeinfo_set_name);
+/**
+ * adf_modeinfo_set_vrefresh - sets the vrefresh of a mode from its other
+ * timing data
+ *
+ * @mode: mode
+ *
+ * adf_modeinfo_set_vrefresh() calculates @mode->vrefresh from
+ * @mode->{h,v}display and @mode->flags. It is intended to help drivers
+ * create ADF/DRM-style modelists from other mode formats.
+ */
void adf_modeinfo_set_vrefresh(struct drm_mode_modeinfo *mode)
{
int refresh = 0;
mode->vrefresh = refresh;
}
+EXPORT_SYMBOL(adf_modeinfo_set_vrefresh);
static int __init adf_init(void)
{
struct adf_event_refcount *adf_obj_find_event_refcount(struct adf_obj *obj,
enum adf_event_type type);
-void adf_modeinfo_set_name(struct drm_mode_modeinfo *mode);
-void adf_modeinfo_set_vrefresh(struct drm_mode_modeinfo *mode);
-
static inline int adf_obj_check_supports_event(struct adf_obj *obj,
enum adf_event_type type)
{
struct drm_mode_modeinfo *modelist, size_t n_modes);
void adf_hotplug_notify_disconnected(struct adf_interface *intf);
+void adf_modeinfo_set_name(struct drm_mode_modeinfo *mode);
+void adf_modeinfo_set_vrefresh(struct drm_mode_modeinfo *mode);
+
#endif /* _VIDEO_ADF_H */