Skip to content

Commit 7fb2e70

Browse files
rriveramcruscarlescufi
authored andcommitted
regulator: cp9314: Prints CHIP_REV info after switch case
Moves the CHIP_REV log message after the CHIP_REV switch case. Printing the log message after allows for the print to be reused for multiple CHIP_REV cases. Signed-off-by: Ricardo Rivera-Matos <[email protected]>
1 parent f885c8a commit 7fb2e70

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/regulator/regulator_cp9314.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,6 @@ static int regulator_cp9314_init(const struct device *dev)
520520

521521
switch (value) {
522522
case CP9314_CHIP_REV_B0:
523-
LOG_INF("Found CP9314 REV:0x%x\n", value);
524523
ret = regulator_cp9314_b0_init(dev);
525524
if (ret < 0) {
526525
return ret;
@@ -531,6 +530,8 @@ static int regulator_cp9314_init(const struct device *dev)
531530
return -ENOTSUP;
532531
}
533532

533+
LOG_INF("Found CP9314 REV:0x%x\n", value);
534+
534535
ret = regulator_cp9314_otp_init(dev);
535536
if (ret < 0) {
536537
return ret;

0 commit comments

Comments
 (0)