Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757134AbaGPKOj (ORCPT ); Wed, 16 Jul 2014 06:14:39 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:48101 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755531AbaGPKOh (ORCPT ); Wed, 16 Jul 2014 06:14:37 -0400 Message-ID: <53C65040.1000507@gmail.com> Date: Wed, 16 Jul 2014 15:43:20 +0530 From: Varka Bhadram Organization: CDAC-HYD User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Kamil Debski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, lm-sensors@lm-sensors.org CC: t.figa@samsung.com, m.szyprowski@samsung.com, linux@roeck-us.net, tklauser@distanz.ch, linux-pwm@vger.kernel.org Subject: Re: [PATCH v4] hwmon: pwm-fan: Add pwm-fan driver References: <1405505014-24983-1-git-send-email-k.debski@samsung.com> In-Reply-To: <1405505014-24983-1-git-send-email-k.debski@samsung.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Kamil, On 07/16/2014 03:33 PM, Kamil Debski wrote: > The pwm-fan driver enables control of fans connected to PWM lines. > This driver uses the PWM framework, so it is compatible with all > PWM devices that provide drivers through the PWM framework. > > Signed-off-by: Kamil Debski > --- > Changes since v3: > - fix missing "\n" in error messages > - remove of_match_ptr which was not necessary > - change error returned in case of failed allocation to -ENOMEM > Changes since v2: > - add CONFIG_PM_SLEEP around pwm_fan_suspend and pwm_fan_resume > Changes since v1: > - added documentation to Documentation/hwmon > - fix checkpatch errors > - added extra description to Kconfig > - removed whitespace errors > - include files rearranged to be in alphabetical order > - remove unused sysfs entry pwm1_enable > - changed the behavior of the set_pwm function > - when 0 PWM value is set pwm_disable is run > - pwm_config return value is checked for errors > - use of ATTRIBUTE_GROUPS was added > - removed "Not enouch memory" error message > - fixed probe return value in case of devm_of_pwm_get error > - changed hwmon_device_register_with_groups to > devm_hwmon_device_register_with_groups > - changes suspend/resume to use pwm_disable/enable > - removed unnecessary CONFIG_PM_SLEEP ifdefs > --- > .../devicetree/bindings/hwmon/pwm-fan.txt | 12 ++ > Documentation/hwmon/pwm-fan | 17 ++ > drivers/hwmon/Kconfig | 11 ++ > drivers/hwmon/Makefile | 1 + > drivers/hwmon/pwm-fan.c | 202 ++++++++++++++++++++ > 5 files changed, 243 insertions(+) > create mode 100644 Documentation/devicetree/bindings/hwmon/pwm-fan.txt > create mode 100644 Documentation/hwmon/pwm-fan > create mode 100644 drivers/hwmon/pwm-fan.c This version addressed all of my comments.. Thanks :-) Reviewed-by: Varka Bhadram -- Regards, Varka Bhadram. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/