diff for duplicates of <53C683B7.9090805@roeck-us.net> diff --git a/a/1.txt b/N1/1.txt index 5ee46ee..1c408ac 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -71,8 +71,7 @@ On 07/16/2014 03:03 AM, Kamil Debski wrote: > +++ b/Documentation/hwmon/pwm-fan > @@ -0,0 +1,17 @@ > +Kernel driver pwm-fan -> +===================== -> + +> +==========> + > +This driver enables the use of a PWM module to drive a fan. It uses the > +generic PWM interface thus it is hardware independent. It can be used on > +many SoCs, as long as the SoC supplies a PWM line driver that exposes @@ -183,10 +182,10 @@ duty_cycle is only used in the probe function, and is thus unnecessary as well. > + > + mutex_lock(&ctx->lock); > + -> + if (ctx->pwm_value == pwm) +> + if (ctx->pwm_value = pwm) > + goto exit_set_pwm; > + -> + if (pwm == 0) { +> + if (pwm = 0) { > + pwm_disable(ctx->pwm); > + ctx->pwm_value = pwm; > + goto exit_set_pwm; @@ -211,7 +210,7 @@ above. > + goto exit_set_pwm; > + } > + -> + if (ctx->pwm_value == 0) +> + if (ctx->pwm_value = 0) > + ret = pwm_enable(ctx->pwm); > + if (ret) { > + count = ret; /* Set the return value */ @@ -353,3 +352,9 @@ Continuation line is not needed here. > +MODULE_DESCRIPTION("PWM FAN driver"); > +MODULE_LICENSE("GPL"); > + + +_______________________________________________ +lm-sensors mailing list +lm-sensors@lm-sensors.org +http://lists.lm-sensors.org/mailman/listinfo/lm-sensors diff --git a/a/content_digest b/N1/content_digest index c1124b5..8daa07d 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\01405505014-24983-1-git-send-email-k.debski@samsung.com\0" "From\0Guenter Roeck <linux@roeck-us.net>\0" - "Subject\0Re: [PATCH v4] hwmon: pwm-fan: Add pwm-fan driver\0" - "Date\0Wed, 16 Jul 2014 06:52:55 -0700\0" + "Subject\0Re: [lm-sensors] [PATCH v4] hwmon: pwm-fan: Add pwm-fan driver\0" + "Date\0Wed, 16 Jul 2014 13:52:55 +0000\0" "To\0Kamil Debski <k.debski@samsung.com>" devicetree@vger.kernel.org linux-kernel@vger.kernel.org @@ -86,8 +86,7 @@ "> +++ b/Documentation/hwmon/pwm-fan\n" "> @@ -0,0 +1,17 @@\n" "> +Kernel driver pwm-fan\n" - "> +=====================\n" - "> +\n" + "> +==========> +\n" "> +This driver enables the use of a PWM module to drive a fan. It uses the\n" "> +generic PWM interface thus it is hardware independent. It can be used on\n" "> +many SoCs, as long as the SoC supplies a PWM line driver that exposes\n" @@ -198,10 +197,10 @@ "> +\n" "> +\tmutex_lock(&ctx->lock);\n" "> +\n" - "> +\tif (ctx->pwm_value == pwm)\n" + "> +\tif (ctx->pwm_value = pwm)\n" "> +\t\tgoto exit_set_pwm;\n" "> +\n" - "> +\tif (pwm == 0) {\n" + "> +\tif (pwm = 0) {\n" "> +\t\tpwm_disable(ctx->pwm);\n" "> +\t\tctx->pwm_value = pwm;\n" "> +\t\tgoto exit_set_pwm;\n" @@ -226,7 +225,7 @@ "> +\t\tgoto exit_set_pwm;\n" "> +\t}\n" "> +\n" - "> +\tif (ctx->pwm_value == 0)\n" + "> +\tif (ctx->pwm_value = 0)\n" "> +\t\tret = pwm_enable(ctx->pwm);\n" "> +\tif (ret) {\n" "> +\t\tcount = ret; /* Set the return value */\n" @@ -367,6 +366,12 @@ "> +MODULE_ALIAS(\"platform:pwm-fan\");\n" "> +MODULE_DESCRIPTION(\"PWM FAN driver\");\n" "> +MODULE_LICENSE(\"GPL\");\n" - > + ">\n" + "\n" + "\n" + "_______________________________________________\n" + "lm-sensors mailing list\n" + "lm-sensors@lm-sensors.org\n" + http://lists.lm-sensors.org/mailman/listinfo/lm-sensors -cc7c549cad2ae20daedb6dd6053e3343ccb8eb503275f118464be42bd0ba5953 +59f467d79203e9ca8f178b57c2a890665cafa793b2cde268d6d33876154785a9
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.