type_c_cfg
cc_param = &type_c_cfg->cc1_param;
cc_param = &type_c_cfg->cc2_param;
struct type_c_cfg *type_c_cfg = type_c->type_c_cfg;
if (type_c_cfg->use_defalut_parameter) {
switch (type_c_cfg->cc_dfp_mode) {
__func__, type_c_cfg->cc_dfp_mode);
cc_param = &type_c_cfg->cc1_param;
if (type_c_cfg->parameter_ver == PARAMETER_V0)
else if (type_c_cfg->parameter_ver == PARAMETER_V1)
__func__, type_c_cfg->parameter_ver);
cc_param = &type_c_cfg->cc2_param;
if (type_c_cfg->parameter_ver == PARAMETER_V0)
else if (type_c_cfg->parameter_ver == PARAMETER_V1)
__func__, type_c_cfg->parameter_ver);
type_c->debounce = (type_c_cfg->debounce_val << 1) | DEBOUNCE_EN;
const struct type_c_cfg *type_c_cfg;
type_c_cfg = of_device_get_match_data(dev);
if (!type_c_cfg) {
type_c->type_c_cfg = devm_kzalloc(dev, sizeof(*type_c_cfg), GFP_KERNEL);
if (!type_c->type_c_cfg)
memcpy(type_c->type_c_cfg, type_c_cfg, sizeof(*type_c_cfg));
static const struct type_c_cfg rtd1295_type_c_cfg = {
static const struct type_c_cfg rtd1395_type_c_cfg = {
static const struct type_c_cfg rtd1619_type_c_cfg = {
static const struct type_c_cfg rtd1319_type_c_cfg = {
static const struct type_c_cfg rtd1312c_type_c_cfg = {
static const struct type_c_cfg rtd1619b_type_c_cfg = {
static const struct type_c_cfg rtd1319d_type_c_cfg = {
static const struct type_c_cfg rtd1315e_type_c_cfg = {
struct type_c_cfg *type_c_cfg;
struct type_c_cfg *type_c_cfg = type_c->type_c_cfg;
switch (type_c_cfg->cc_dfp_mode) {
cc_param = &type_c_cfg->cc1_param;
cc_param = &type_c_cfg->cc2_param;
struct type_c_cfg *type_c_cfg = type_c->type_c_cfg;
cc_param = &type_c_cfg->cc1_param;
cc_param = &type_c_cfg->cc2_param;
struct type_c_cfg *type_c_cfg = type_c->type_c_cfg;