memset(&link_config, 0, sizeof(link_config));
- if (adv7511->info->type == ADV7511)
+ if (adv7511->info->link_config)
ret = adv7511_parse_dt(dev->of_node, &link_config);
else
ret = adv7533_parse_dt(dev->of_node, adv7511);
i2c_set_clientdata(i2c, adv7511);
- if (adv7511->info->type == ADV7511)
+ if (adv7511->info->link_config)
adv7511_set_link_config(adv7511, &link_config);
ret = adv7511_cec_init(dev, adv7511);
.type = ADV7511,
.supply_names = adv7511_supply_names,
.num_supplies = ARRAY_SIZE(adv7511_supply_names),
+ .link_config = true,
};
static const struct adv7511_chip_info adv7533_chip_info = {