da9121-regulator.c (4950486cd86f450baa847bfc13557244d834526c) | da9121-regulator.c (24f0853228f3b98f1ef08d5824376c69bb8124d2) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2// 3// DA9121 Single-channel dual-phase 10A buck converter 4// 5// Copyright (C) 2020 Axis Communications AB 6// 7// DA9130 Single-channel dual-phase 10A buck converter (Automotive) 8// DA9217 Single-channel dual-phase 6A buck converter --- 239 unchanged lines hidden (view full) --- 248 int ret = 0; 249 250 if (min_ua < range->val_min || 251 max_ua > range->val_max) { 252 ret = -EINVAL; 253 goto error; 254 } 255 | 1// SPDX-License-Identifier: GPL-2.0-only 2// 3// DA9121 Single-channel dual-phase 10A buck converter 4// 5// Copyright (C) 2020 Axis Communications AB 6// 7// DA9130 Single-channel dual-phase 10A buck converter (Automotive) 8// DA9217 Single-channel dual-phase 6A buck converter --- 239 unchanged lines hidden (view full) --- 248 int ret = 0; 249 250 if (min_ua < range->val_min || 251 max_ua > range->val_max) { 252 ret = -EINVAL; 253 goto error; 254 } 255 |
256 if (rdev->desc->ops->is_enabled(rdev)) { 257 ret = -EBUSY; 258 goto error; 259 } 260 |
|
256 ret = da9121_ceiling_selector(rdev, min_ua, max_ua, &sel); 257 if (ret < 0) 258 goto error; 259 260 ret = regmap_update_bits(chip->regmap, 261 da9121_current_field[id].reg, 262 da9121_current_field[id].msk, 263 (unsigned int)sel); --- 840 unchanged lines hidden --- | 261 ret = da9121_ceiling_selector(rdev, min_ua, max_ua, &sel); 262 if (ret < 0) 263 goto error; 264 265 ret = regmap_update_bits(chip->regmap, 266 da9121_current_field[id].reg, 267 da9121_current_field[id].msk, 268 (unsigned int)sel); --- 840 unchanged lines hidden --- |