imx_ldb
static void imx_ldb_set_clock(struct imx_ldb *ldb, int mux, int chno,
struct imx_ldb *ldb = imx_ldb_ch->ldb;
struct imx_ldb *ldb = imx_ldb_ch->ldb;
struct imx_ldb *ldb = imx_ldb_ch->ldb;
static int imx_ldb_get_clk(struct imx_ldb *ldb, int chno)
struct imx_ldb *ldb = imx_ldb_ch->ldb;
struct imx_ldb *imx_ldb = dev_get_drvdata(dev);
struct imx_ldb_channel *channel = &imx_ldb->channel[i];
struct imx_ldb *imx_ldb;
imx_ldb = devm_kzalloc(dev, sizeof(*imx_ldb), GFP_KERNEL);
if (!imx_ldb)
imx_ldb->regmap = syscon_regmap_lookup_by_phandle(np, "gpr");
if (IS_ERR(imx_ldb->regmap)) {
return PTR_ERR(imx_ldb->regmap);
regmap_write(imx_ldb->regmap, IOMUXC_GPR2, 0);
imx_ldb->dev = dev;
imx_ldb->lvds_mux = device_get_match_data(dev);
imx_ldb->ldb_ctrl |= LDB_SPLIT_MODE_EN;
imx_ldb->clk_sel[i] = devm_clk_get(imx_ldb->dev, clkname);
if (IS_ERR(imx_ldb->clk_sel[i])) {
ret = PTR_ERR(imx_ldb->clk_sel[i]);
imx_ldb->clk_sel[i] = NULL;
imx_ldb->clk_parent[i] = clk_get_parent(imx_ldb->clk_sel[i]);
channel = &imx_ldb->channel[i];
channel->ldb = imx_ldb;
imx_ldb->lvds_mux ? 4 : 2, 0);
struct imx_ldb;
platform_set_drvdata(pdev, imx_ldb);
struct imx_ldb *ldb;
struct imx_ldb *ldb = imx_ldb_ch->ldb;