From patchwork Thu Feb 7 16:37:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 10801467 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ED4116C2 for ; Thu, 7 Feb 2019 16:39:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 86EA62DDE2 for ; Thu, 7 Feb 2019 16:39:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7B8692DE16; Thu, 7 Feb 2019 16:39:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 302D12DDE2 for ; Thu, 7 Feb 2019 16:39:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726742AbfBGQjK (ORCPT ); Thu, 7 Feb 2019 11:39:10 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:41017 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726171AbfBGQjK (ORCPT ); Thu, 7 Feb 2019 11:39:10 -0500 Received: from stefan-Vostro-260.fritz.box ([109.104.54.161]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1M6EOc-1gl9vO2zkG-006ilV; Thu, 07 Feb 2019 17:38:34 +0100 From: Stefan Wahren To: Kamil Debski , Bartlomiej Zolnierkiewicz , Jean Delvare , Guenter Roeck , Rob Herring , Mark Rutland Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Stefan Wahren Subject: [PATCH V2 0/2] hwmon: pwm-fan: Add optional regulator support Date: Thu, 7 Feb 2019 17:37:58 +0100 Message-Id: <1549557480-14436-1-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.7.4 X-Provags-ID: V03:K1:/Q8ZR5u2BntDBN4A9/0VFlBKHldnkOOSqi7uJcW3SS5GnPXHHp/ vkGsNNiHvj9WnfKqw+xG0WXLXLIIT0jFcttXiF/oq9tNU0edOZ2Z6lKEMALAbb3bH16Pt0S 1JcgW1HR1OnnvBnFpm8cStzZMKGPjALRR+Jw5MaHBIwe/pEtwZemzIwBiOaOwfucUOY+Xsl BkkZ6c0sROHXor98nXFNA== X-UI-Out-Filterresults: notjunk:1;V03:K0:FhcePeQSo/Q=:sMbIj7i+0l54E0E9r1P9eh UUvS6+5mmEpHd4YjesZ2JcgCI5GiGAxecSEuKezu9/hKUXPNM3hFNqWgU5W0pMWkA4X8sriOW psehVJ5acm72kvLa/VeUHBGLvhmoddTQicxAtdSnoyu/e4+oahyOpjod4ePPRQPIFsfFpMXFm 8YfDOfL3D9C8l+3x+qEVlOoaPBh8TpAL9xnFl2b9qWfk78sutuOEiJCoxHAsXrXpDRhxaJJcI ZObXw1CaxmSeQu0lBsc0uvlbAkMPXrvDjgL/0HvUKpedd90w4/o+2Vag9I4qPxxOVbJFgD/m2 UxXVyBxqz0ta9iq290eCUee1C92k7ihpY8tf8Jfaf64RG+szhOJXVEYX0I/WnjB8MYVsjDWaq 3UeOEldkWerZk8V91+TkW1UGI2Zp00B1ldxc2cHWt8xgpOxOhT6W+i/vrg3JYYgA3BToUT0r0 SjICPRWcGWKmPraSU6vfTy8EpQ4XyuOL1KaXb/vUttLA4GGnNSABNzwuNkDbPkdqT8jCMlWx1 3uEaDCoYbORxFFthz4/7Nwar6E/nXe7n7oUS/pDvlEnV5+/AqB4JRJvgVz2fTfTG9CfNE5dbS RvR7KbfWg4YhJ78NzGGahgcQql1OtGINQYijXGiv+aIlnOgE3RrpTe+HRwktBLrIEmhAHwuKD qHEmWYI14sJRy90cMPHeG8tBjQ4a8pT7KLn6roYgZR9CrrAsE66yIEYj+i972nKuzyUdLqJZJ Q5qZZTuQOpfc5QuL270CVckaCDC7x++tARGmFGgmcSD6/ZPKpAOF/ODfZD8= Sender: linux-hwmon-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This small series implements the optional regulator support for the pwm-fan driver. Changes in V2: - address Guenter's comments: - handle error case first - drop ENOSYS handling - implement more consistent bail out handling - enable regulator before setup PWM - make sure we disable regulator if probe fails Stefan Wahren (2): dt-bindings: hwmon: Add optional regulator support to pwm-fan hwmon: pwm-fan: Add optional regulator support .../devicetree/bindings/hwmon/pwm-fan.txt | 3 ++ drivers/hwmon/pwm-fan.c | 39 +++++++++++++++++++++- 2 files changed, 41 insertions(+), 1 deletion(-)