Lines Matching +full:boost +full:- +full:mode
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Driver for TPS61050/61052 boost converters, typically used for white LEDs
6 * Copyright (C) 2011 ST-Ericsson SA
7 * Written on behalf of Linaro for ST-Ericsson
39 .name = "tps6105x-boost",
60 struct tps6105x *tps6105x = dev_get_platdata(&pdev->dev); in tps6105x_regulator_probe()
61 struct tps6105x_platform_data *pdata = tps6105x->pdata; in tps6105x_regulator_probe()
65 /* This instance is not set for regulator mode so bail out */ in tps6105x_regulator_probe()
66 if (pdata->mode != TPS6105X_MODE_VOLTAGE) { in tps6105x_regulator_probe()
67 dev_info(&pdev->dev, in tps6105x_regulator_probe()
68 "chip not in voltage mode mode, exit probe\n"); in tps6105x_regulator_probe()
72 config.dev = &tps6105x->client->dev; in tps6105x_regulator_probe()
73 config.init_data = pdata->regulator_data; in tps6105x_regulator_probe()
75 config.of_node = pdev->dev.parent->of_node; in tps6105x_regulator_probe()
76 config.regmap = tps6105x->regmap; in tps6105x_regulator_probe()
79 tps6105x->regulator = devm_regulator_register(&pdev->dev, in tps6105x_regulator_probe()
82 if (IS_ERR(tps6105x->regulator)) { in tps6105x_regulator_probe()
83 ret = PTR_ERR(tps6105x->regulator); in tps6105x_regulator_probe()
84 dev_err(&tps6105x->client->dev, in tps6105x_regulator_probe()
95 .name = "tps6105x-regulator",
116 MODULE_ALIAS("platform:tps6105x-regulator");