diff options
author | Lee Jones <lee.jones@linaro.org> | 2015-10-27 12:12:21 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2016-01-14 03:43:51 -0500 |
commit | f90dff44641dedea02b1549a9dd5c00bae9230da (patch) | |
tree | a80d08708d69807913c19b821a14c0cc21bd46ed /drivers/mfd | |
parent | 0b81995148f80f4fa0ce19e66d2e66abe82f456a (diff) |
mfd: 88pm860x-core: Fix commenting and declaration spacing
Checkpatch output:
WARNING: Block comments use a trailing */ on a separate line
+ * - turn off */
WARNING: Missing a blank line after declarations
+ int ret;
+ ret = i2c_add_driver(&pm860x_driver);
total: 0 errors, 2 warnings, 1283 lines checked
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/88pm860x-core.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/mfd/88pm860x-core.c b/drivers/mfd/88pm860x-core.c index e497cee36066..25e1aafae60c 100644 --- a/drivers/mfd/88pm860x-core.c +++ b/drivers/mfd/88pm860x-core.c | |||
@@ -705,10 +705,12 @@ int pm8606_osc_disable(struct pm860x_chip *chip, unsigned short client) | |||
705 | chip->osc_status); | 705 | chip->osc_status); |
706 | 706 | ||
707 | mutex_lock(&chip->osc_lock); | 707 | mutex_lock(&chip->osc_lock); |
708 | /*Update voting status */ | 708 | /* Update voting status */ |
709 | chip->osc_vote &= ~(client); | 709 | chip->osc_vote &= ~(client); |
710 | /* If reference group is off and this is the last client to release | 710 | /* |
711 | * - turn off */ | 711 | * If reference group is off and this is the last client to release |
712 | * - turn off | ||
713 | */ | ||
712 | if ((chip->osc_status != PM8606_REF_GP_OSC_OFF) && | 714 | if ((chip->osc_status != PM8606_REF_GP_OSC_OFF) && |
713 | (chip->osc_vote == REF_GP_NO_CLIENTS)) { | 715 | (chip->osc_vote == REF_GP_NO_CLIENTS)) { |
714 | chip->osc_status = PM8606_REF_GP_OSC_UNKNOWN; | 716 | chip->osc_status = PM8606_REF_GP_OSC_UNKNOWN; |
@@ -1265,6 +1267,7 @@ static struct i2c_driver pm860x_driver = { | |||
1265 | static int __init pm860x_i2c_init(void) | 1267 | static int __init pm860x_i2c_init(void) |
1266 | { | 1268 | { |
1267 | int ret; | 1269 | int ret; |
1270 | |||
1268 | ret = i2c_add_driver(&pm860x_driver); | 1271 | ret = i2c_add_driver(&pm860x_driver); |
1269 | if (ret != 0) | 1272 | if (ret != 0) |
1270 | pr_err("Failed to register 88PM860x I2C driver: %d\n", ret); | 1273 | pr_err("Failed to register 88PM860x I2C driver: %d\n", ret); |