Lines Matching refs:cfg
114 struct regulator_config cfg = { }; in reg_fixed_voltage_probe() local
164 cfg.ena_gpio = config->gpio; in reg_fixed_voltage_probe()
166 cfg.ena_gpio_initialized = true; in reg_fixed_voltage_probe()
168 cfg.ena_gpio_invert = !config->enable_high; in reg_fixed_voltage_probe()
171 cfg.ena_gpio_flags |= GPIOF_OUT_INIT_HIGH; in reg_fixed_voltage_probe()
173 cfg.ena_gpio_flags |= GPIOF_OUT_INIT_LOW; in reg_fixed_voltage_probe()
176 cfg.ena_gpio_flags |= GPIOF_OUT_INIT_LOW; in reg_fixed_voltage_probe()
178 cfg.ena_gpio_flags |= GPIOF_OUT_INIT_HIGH; in reg_fixed_voltage_probe()
181 cfg.ena_gpio_flags |= GPIOF_OPEN_DRAIN; in reg_fixed_voltage_probe()
183 cfg.dev = &pdev->dev; in reg_fixed_voltage_probe()
184 cfg.init_data = config->init_data; in reg_fixed_voltage_probe()
185 cfg.driver_data = drvdata; in reg_fixed_voltage_probe()
186 cfg.of_node = pdev->dev.of_node; in reg_fixed_voltage_probe()
189 &cfg); in reg_fixed_voltage_probe()