mcp16502.c (c39f2d9db0fd81ea20bb5cce9b3f082ca63753e2) | mcp16502.c (60ab7f4153b6af461c90d572c31104086b44639f) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2// 3// MCP16502 PMIC driver 4// 5// Copyright (C) 2018 Microchip Technology Inc. and its subsidiaries 6// 7// Author: Andrei Stefanescu <andrei.stefanescu@microchip.com> 8// --- 377 unchanged lines hidden (view full) --- 386}; 387 388static const struct of_device_id mcp16502_ids[] = { 389 { .compatible = "microchip,mcp16502", }, 390 {} 391}; 392MODULE_DEVICE_TABLE(of, mcp16502_ids); 393 | 1// SPDX-License-Identifier: GPL-2.0 2// 3// MCP16502 PMIC driver 4// 5// Copyright (C) 2018 Microchip Technology Inc. and its subsidiaries 6// 7// Author: Andrei Stefanescu <andrei.stefanescu@microchip.com> 8// --- 377 unchanged lines hidden (view full) --- 386}; 387 388static const struct of_device_id mcp16502_ids[] = { 389 { .compatible = "microchip,mcp16502", }, 390 {} 391}; 392MODULE_DEVICE_TABLE(of, mcp16502_ids); 393 |
394static const struct regulator_linear_range b1l12_ranges[] = { | 394static const struct linear_range b1l12_ranges[] = { |
395 REGULATOR_LINEAR_RANGE(1200000, VDD_LOW_SEL, VDD_HIGH_SEL, 50000), 396}; 397 | 395 REGULATOR_LINEAR_RANGE(1200000, VDD_LOW_SEL, VDD_HIGH_SEL, 50000), 396}; 397 |
398static const struct regulator_linear_range b234_ranges[] = { | 398static const struct linear_range b234_ranges[] = { |
399 REGULATOR_LINEAR_RANGE(600000, VDD_LOW_SEL, VDD_HIGH_SEL, 25000), 400}; 401 402static const struct regulator_desc mcp16502_desc[] = { 403 /* MCP16502_REGULATOR(_name, _id, ranges, regulator_ops) */ 404 MCP16502_REGULATOR("VDD_IO", BUCK1, b1l12_ranges, mcp16502_buck_ops), 405 MCP16502_REGULATOR("VDD_DDR", BUCK2, b234_ranges, mcp16502_buck_ops), 406 MCP16502_REGULATOR("VDD_CORE", BUCK3, b234_ranges, mcp16502_buck_ops), --- 123 unchanged lines hidden --- | 399 REGULATOR_LINEAR_RANGE(600000, VDD_LOW_SEL, VDD_HIGH_SEL, 25000), 400}; 401 402static const struct regulator_desc mcp16502_desc[] = { 403 /* MCP16502_REGULATOR(_name, _id, ranges, regulator_ops) */ 404 MCP16502_REGULATOR("VDD_IO", BUCK1, b1l12_ranges, mcp16502_buck_ops), 405 MCP16502_REGULATOR("VDD_DDR", BUCK2, b234_ranges, mcp16502_buck_ops), 406 MCP16502_REGULATOR("VDD_CORE", BUCK3, b234_ranges, mcp16502_buck_ops), --- 123 unchanged lines hidden --- |