提交 f90dff44 编写于 作者: L Lee Jones

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: NLee Jones <lee.jones@linaro.org>
上级 0b819951
...@@ -705,10 +705,12 @@ int pm8606_osc_disable(struct pm860x_chip *chip, unsigned short client) ...@@ -705,10 +705,12 @@ int pm8606_osc_disable(struct pm860x_chip *chip, unsigned short client)
chip->osc_status); chip->osc_status);
mutex_lock(&chip->osc_lock); mutex_lock(&chip->osc_lock);
/*Update voting status */ /* Update voting status */
chip->osc_vote &= ~(client); chip->osc_vote &= ~(client);
/* If reference group is off and this is the last client to release /*
* - turn off */ * If reference group is off and this is the last client to release
* - turn off
*/
if ((chip->osc_status != PM8606_REF_GP_OSC_OFF) && if ((chip->osc_status != PM8606_REF_GP_OSC_OFF) &&
(chip->osc_vote == REF_GP_NO_CLIENTS)) { (chip->osc_vote == REF_GP_NO_CLIENTS)) {
chip->osc_status = PM8606_REF_GP_OSC_UNKNOWN; chip->osc_status = PM8606_REF_GP_OSC_UNKNOWN;
...@@ -1265,6 +1267,7 @@ static struct i2c_driver pm860x_driver = { ...@@ -1265,6 +1267,7 @@ static struct i2c_driver pm860x_driver = {
static int __init pm860x_i2c_init(void) static int __init pm860x_i2c_init(void)
{ {
int ret; int ret;
ret = i2c_add_driver(&pm860x_driver); ret = i2c_add_driver(&pm860x_driver);
if (ret != 0) if (ret != 0)
pr_err("Failed to register 88PM860x I2C driver: %d\n", ret); pr_err("Failed to register 88PM860x I2C driver: %d\n", ret);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册