[LVDS_BIT_MAP_JEIDA] = "jeida",
};
-const int of_get_data_mapping(struct device_node *np)
+static const int of_get_data_mapping(struct device_node *np)
{
const char *bm;
int ret, i;
{
struct device_node *np = pdev->dev.of_node;
const struct of_device_id *of_id =
- of_match_device(of_match_ptr(imx_ldb_dt_ids),
- &pdev->dev);
+ of_match_device(imx_ldb_dt_ids, &pdev->dev);
struct device_node *child;
const u8 *edidp;
struct imx_ldb *imx_ldb;
channel->edid = kmemdup(edidp, channel->edid_len,
GFP_KERNEL);
} else {
- ret = of_get_drm_display_mode(child, &channel->mode, 0);
+ ret = of_get_drm_display_mode(child, &channel->mode, -1);
if (!ret)
channel->mode_valid = 1;
}