#include <linux/dmi.h>
#include <linux/module.h>
#include <drm/drm_connector.h>
#include <drm/drm_utils.h>
#ifdef CONFIG_DMI
struct drm_dmi_panel_orientation_data { … };
static const struct drm_dmi_panel_orientation_data gpd_micropc = …;
static const struct drm_dmi_panel_orientation_data gpd_onemix2s = …;
static const struct drm_dmi_panel_orientation_data gpd_pocket = …;
static const struct drm_dmi_panel_orientation_data gpd_pocket2 = …;
static const struct drm_dmi_panel_orientation_data gpd_win = …;
static const struct drm_dmi_panel_orientation_data gpd_win2 = …;
static const struct drm_dmi_panel_orientation_data itworks_tw891 = …;
static const struct drm_dmi_panel_orientation_data onegx1_pro = …;
static const struct drm_dmi_panel_orientation_data lcd720x1280_rightside_up = …;
static const struct drm_dmi_panel_orientation_data lcd800x1280_leftside_up = …;
static const struct drm_dmi_panel_orientation_data lcd800x1280_rightside_up = …;
static const struct drm_dmi_panel_orientation_data lcd1080x1920_leftside_up = …;
static const struct drm_dmi_panel_orientation_data lcd1080x1920_rightside_up = …;
static const struct drm_dmi_panel_orientation_data lcd1200x1920_rightside_up = …;
static const struct drm_dmi_panel_orientation_data lcd1280x1920_rightside_up = …;
static const struct drm_dmi_panel_orientation_data lcd1600x2560_leftside_up = …;
static const struct drm_dmi_panel_orientation_data lcd1600x2560_rightside_up = …;
static const struct dmi_system_id orientation_data[] = …;
int drm_get_panel_orientation_quirk(int width, int height)
{ … }
EXPORT_SYMBOL(…);
#else
int drm_get_panel_orientation_quirk(int width, int height)
{
return DRM_MODE_PANEL_ORIENTATION_UNKNOWN;
}
EXPORT_SYMBOL(drm_get_panel_orientation_quirk);
#endif
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;