regulator: core: Make entire header comment C++ style
[sfrench/cifs-2.6.git] / drivers / regulator / core.c
index 955a0a15b9cb662c0ebbd728f6df3d1b55242eb3..9d3ed13b7f1230b024faadbd28d7b49d9184972e 100644 (file)
@@ -1,17 +1,11 @@
-/*
- * core.c  --  Voltage/Current Regulator framework.
- *
- * Copyright 2007, 2008 Wolfson Microelectronics PLC.
- * Copyright 2008 SlimLogic Ltd.
- *
- * Author: Liam Girdwood <lrg@slimlogic.co.uk>
- *
- *  This program is free software; you can redistribute  it and/or modify it
- *  under  the terms of  the GNU General  Public License as published by the
- *  Free Software Foundation;  either version 2 of the  License, or (at your
- *  option) any later version.
- *
- */
+// SPDX-License-Identifier: GPL-2.0-or-later
+//
+// core.c  --  Voltage/Current Regulator framework.
+//
+// Copyright 2007, 2008 Wolfson Microelectronics PLC.
+// Copyright 2008 SlimLogic Ltd.
+//
+// Author: Liam Girdwood <lrg@slimlogic.co.uk>
 
 #include <linux/kernel.h>
 #include <linux/init.h>
@@ -1650,9 +1644,9 @@ static int _regulator_get_enable_time(struct regulator_dev *rdev)
 {
        if (rdev->constraints && rdev->constraints->enable_time)
                return rdev->constraints->enable_time;
-       if (!rdev->desc->ops->enable_time)
-               return rdev->desc->enable_time;
-       return rdev->desc->ops->enable_time(rdev);
+       if (rdev->desc->ops->enable_time)
+               return rdev->desc->ops->enable_time(rdev);
+       return rdev->desc->enable_time;
 }
 
 static struct regulator_supply_alias *regulator_find_supply_alias(