Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1994398ybb; Sat, 21 Mar 2020 10:15:09 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvbxsdk0hfbPgAMWO82F/ahFHVvHI1Xu+y8XG+ffbUvr9iLyyPBrvROvzrxc1Tk3AS0M2Ir X-Received: by 2002:aca:4243:: with SMTP id p64mr11265169oia.21.1584810909305; Sat, 21 Mar 2020 10:15:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584810909; cv=none; d=google.com; s=arc-20160816; b=uCY9P0tB4qzjxSnyEtm2U6mkTSoATPIa77pPzvxSMB6oCQAkMRy2DrhARBBE8RSCNy C6GT0Ur42U+ZQgfXSUFYzadWhrC9zSo/Q/lFBDlt7KQV+Sa6mf4mC68vKD3ZcSKz5vXn xTdQadWey/NO7eCqdQdfSIiczT+wMjAFwPgByB60iHkok2mUKl3Wym1oNT+7eT7pSF1G lDypjbZd4eVyY4+cjtahalZvjtnXQrSme7C0LWW0Cg8F9WdkfOzMzJbH0vDINEksiLcB blFkJRlfIUAgTC8XD4zJDfiXemAQSAM1QBaC3k5DcfF3nfLTUjPGXsJ2DqtrEhvJ9wDF ZIsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :ironport-sdr:dkim-signature; bh=XzorpplRT7wtWg9Mxa5ZbR0e6rCEzczO1pqJcaeudQs=; b=vHhQ6P0smLGrlvCias2Cu1FeeUNA8KsqkZ5YUpr/j06bxAQMpn/5c2OlL+fAc6P+2k xdLNixTjJlXlJj/8aMTLf8qua2MLriSeLMSh+0y/PE1a49Q/dkkpzXBYIe9DcxXs1uia 6puU7U0iJ4zYn51IMli/1jcNdy13KayvudN7a1vLTUslvCaQW3YXolnzPvE7yXumoRsz CTjR22qQeZUV70GUeFiOZ8WZUkFRfycVvZ9J5nw3bOZYEG35p1Rz3Xmpw91g6aBDcktP FvmqXPEGNL+mZTGFUM61zJyQbEveKycVzwZwoDJH1rO4rg+hqGckm5n2JwvReiHRsH7l mkDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@diehl.com header.s=default header.b=ky2Yjy6d; 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 c12si5013336otr.67.2020.03.21.10.14.55; Sat, 21 Mar 2020 10:15:09 -0700 (PDT) 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; dkim=fail (test mode) header.i=@diehl.com header.s=default header.b=ky2Yjy6d; 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 S1727634AbgCURNJ (ORCPT + 99 others); Sat, 21 Mar 2020 13:13:09 -0400 Received: from enterprise02.smtp.diehl.com ([193.201.238.220]:7442 "EHLO enterprise02.smtp.diehl.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727323AbgCURNJ (ORCPT ); Sat, 21 Mar 2020 13:13:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=diehl.com; i=@diehl.com; q=dns/txt; s=default; t=1584810787; x=1616346787; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=XzorpplRT7wtWg9Mxa5ZbR0e6rCEzczO1pqJcaeudQs=; b=ky2Yjy6d1VI8iESi3IEHzaQ+4qVG+0nfmlHlG9RraSJ4qFEmp5enQd40 Dia1u2Jnvy5amIe9GoWQpmMZn7y977ZyjcO/5G8OruaKJen1v6sClxK6s PXroE+SBQRTEULcgaelK4bH44dxoAZ8CHyAE2zamExYpb3BZU1LvU0OpJ nwWcknyY2rLAdc6BD5LO3W9XZy6NZS4FcIoX8JjpPQ4sMiTCmgUhqioeQ 2BV4jw+nAeadskc0BBAWlCmKcWBNepEhmJGm7Ls4x/q25d6Iw7NhhGCjj w8vUqxEcQTCZsx3oV4YVaQor9gJAkWhy397K22/jXmkxDFmw1r/tqaHrH g==; IronPort-SDR: aNRpVEfyM9ENymHOW8HfxflF0n6BwLfsRr2C+buu/tSusspq09kZoA5k4jixo3qrqXx5tOYLQB +fvc1QSAw81Q== From: Denis Osterland-Heim To: "pavel@ucw.cz" CC: "linux-kernel@vger.kernel.org" , "robh+dt@kernel.org" , "dmurphy@ti.com" , "devicetree@vger.kernel.org" , "jacek.anaszewski@gmail.com" , "linux-leds@vger.kernel.org" , "mark.rutland@arm.com" , "uwe@kleine-koenig.org" Subject: Re: [PATCH v4 3/5] leds: pwm: check result of led_pwm_set() in led_pwm_add() Thread-Topic: [PATCH v4 3/5] leds: pwm: check result of led_pwm_set() in led_pwm_add() Thread-Index: AQHV/1jvS39qjeoyFEyBmW+H8QD2bqhTGRaAgAAfaQA= Date: Sat, 21 Mar 2020 17:13:03 +0000 Message-ID: References: <20200321081321.15614-1-Denis.Osterland@diehl.com> <20200321081321.15614-4-Denis.Osterland@diehl.com> <20200321152037.GB8386@duo.ucw.cz> In-Reply-To: <20200321152037.GB8386@duo.ucw.cz> Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: Evolution 3.28.5-0ubuntu0.18.04.1 x-ms-exchange-messagesentrepresentingtype: 1 Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-TrailerSkip: 1 X-GBS-PROC: byQFdw3ukCM+zy1/poiPc5K2ye5IImf/kUigOoDyhtd7jr7ZKemyoWlP3kfh3WQd S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