Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp1541851imp; Fri, 22 Feb 2019 05:47:13 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib2kE047N97YXysq2C8SPBDFEBkawJrDN9kzgZQ1VbeVaSH+X3TjCejZgQ615ax5Q5lfNTd X-Received: by 2002:a63:6f09:: with SMTP id k9mr4063977pgc.326.1550843233688; Fri, 22 Feb 2019 05:47:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550843233; cv=none; d=google.com; s=arc-20160816; b=Io9e6yV423nve9EvVvPBoV8I2d4wmtIw1eDQQNRkR7+Pa/Auq0wgRkhVT6ci0JlMLP tZHLG11r6Tx7qJiQPxAkIMsFnvvD1rkf7BGOTE/hAZCDTWYkDIQeqVlAPEJesF2LAx2v +69Gpsm4m9dygrI4KxXUk+PCOGi3t/DpHfL31IeqEWf52ij82N3yDfvloYTlnZ1h5jit SgVVLyGzhYFyMGLtzdzNTA0VNnJ2VmzGaWiXyUxIRcjecQDPwtyNbRA9c5vntj73WnZY Fm8re/E2Akud0m36+YtMucIvOOOZv1fxGm31MnDBl+VIVbLQVGr3jk6WwTQGZQ8b7CNR riwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=jNFz6t+XepeAt8Ha0CK2E6YuC7xdvjHjX0T0upCcS1k=; b=uihnjr+kZz4wDyWd3vr5/fpmhvtP75UZZhskpsys8KamFZ4ta7QvY/0a6/b0R6Vcch oU0kaEHHpRtrYNvDvPTS/P3ZWHIYzON8Ssl3yFCNxIgvvCN6WoUWqbuYpOrDQFJ9zOql flJYSWFORbd3x1Nx5oUpLHcFfHoSjVqqKao/D7yJfmHGuYCc9zdqk2174eyVILTsXDrJ FgpPWejKHcHA/sg5VVlynXBX/jA7XGGpjUHKEeBbxZV0hGuio48Lb3og5kysKaCvKUOT +nyVm27/qY0XDpfPh4eezUA90rtH7wdtk9k6JH4YHxIRvauuRUTIwFoyTxounxOVANHs cHCQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f1si1454983pfb.282.2019.02.22.05.46.57; Fri, 22 Feb 2019 05:47:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726551AbfBVNqg (ORCPT + 99 others); Fri, 22 Feb 2019 08:46:36 -0500 Received: from mout.kundenserver.de ([217.72.192.74]:36179 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726352AbfBVNqf (ORCPT ); Fri, 22 Feb 2019 08:46:35 -0500 Received: from stefan-Vostro-260.fritz.box ([109.104.42.136]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MZkxd-1gZ8G10C19-00WmTV; Fri, 22 Feb 2019 14:46:06 +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 V3 0/2] hwmon: pwm-fan: Add optional regulator support Date: Fri, 22 Feb 2019 14:45:22 +0100 Message-Id: <1550843124-10992-1-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.7.4 X-Provags-ID: V03:K1:bUysODDqCtcQbPs5My9q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vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This small series implements the optional regulator support for the pwm-fan driver. Changes in V3: - simplify error case in probing code - return regulator error code in pm callbacks 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 | 43 +++++++++++++++++++++- 2 files changed, 45 insertions(+), 1 deletion(-) -- 2.7.4