Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1579266ybb; Sat, 21 Mar 2020 01:16:46 -0700 (PDT) X-Google-Smtp-Source: ADFU+vssIx4UTWIKpTNeu0ZvtJRwBLDejac6yNuWcRGJfncZioYF5vmJF6mIb1yuQU6coZbOKkX6 X-Received: by 2002:a05:6830:120f:: with SMTP id r15mr9866539otp.90.1584778606750; Sat, 21 Mar 2020 01:16:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584778606; cv=none; d=google.com; s=arc-20160816; b=rV1rzBAHQrlqjkjJ+UzsXeGER8K3tlFIHyo4gZeACn2I5zu1pXkvVDxvpAMdMgXDce WuRWxL/ik+40D7W+28PzJfoOgWwWsDATwb1PAERabw67yDNrigiaCCC0r7L1uoIpAtCv 2bLzI8zNWIlJkALexPfEcBUc4ADbIOEoclRHJWPM2pAOrTqI44QzAdud8TC6JCFVY99A l3EccX8Hj2Q9WdGiA3CQpLAwtLcuJM2rt+f+BkhYpZeX0afcTmvHBOAp8mSPaufl/vPx R+bc0FoOSANo4+vB3D3YuU0Q9ECNMP3Zch2AGEZk9gwXHU1tW2SZknEbrHy9oifkTX9p ofJg== 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=fNaOGd71ykhkOab84O0XrMhdHdHgb/7uZ6XyGD7xzNo=; b=rpD8MhGpjeGg9e1Pr0SnRHyrtbz8vjDIiBPiP5lycR741Q8GCfDu3OWnELnhJpiIeO dmYB0OVZGkUBRnI1G/UuyfZ+G8wZmPj7Po90G97SizQqXVa7JkBpiEeXWNlXXmJ3wrBU P7ta5T1kHFcysW+VpGV480SPj4MUq4iWaBoCw6dc35UPaGr5iTcn+jc5289Gcer6hNN9 p4YyUcHP97sL3RdrCTctCPMKj4TaVKrheXxM5YS8MuZx+C8xgcvxkYxP50N3NXGHyX9c OKFsnYeuoM4aexov3ewidwgByf23EE/Y9TQbx2gqgX3tCSt6gfDXyxXw4QWAOfjxjeOE 5LTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@diehl.com header.s=default header.b=beeswZoq; 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 k193si4157713oih.78.2020.03.21.01.16.23; Sat, 21 Mar 2020 01:16:46 -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=beeswZoq; 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 S1728118AbgCUIP6 (ORCPT + 99 others); Sat, 21 Mar 2020 04:15:58 -0400 Received: from enterprise02.smtp.diehl.com ([193.201.238.220]:35341 "EHLO enterprise02.smtp.diehl.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727961AbgCUIP6 (ORCPT ); Sat, 21 Mar 2020 04:15:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=diehl.com; i=@diehl.com; q=dns/txt; s=default; t=1584778556; x=1616314556; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=fNaOGd71ykhkOab84O0XrMhdHdHgb/7uZ6XyGD7xzNo=; b=beeswZoqj6Y/vCMUZ1Wp2xgU6mKcqfGiSIfv7hIpTKriyrl14C5qSgYl qV/oCp4X6SgzGy44s/NOHIYdSV1JgczvwKbbuDRGkkQHNEkciPnTx3ULa 6miJ/1s/bB20LjwwEkke9CUMZjQuloqR+U421hJnF/eMhIUp0yLGbN+gQ YSRwCuwoy2B/J51/i33mu77ttlYQrP2CLSw28+aYTpxUQu4B9kyOuRHZj yNpPJnPLFh5/gvZS+4BduS1vyVgqGOl8KZi9fTNQ5+JjH5hvZF7s3kizO xwubzXLrZJxCsN1ui/k2vH0ac0bT2nVLwBV/kGFKNAIjqjdx62DsTC8e5 A==; IronPort-SDR: QN054/gFapPR1cVtlOEJiZqDlCAwPlb/8EK4TVbBtiJo+3qyFMchAGjiDqjV2M8Kfd2CmIdaci r2DY0PjGpI4g== From: Denis Osterland-Heim To: "dmurphy@ti.com" , "pavel@ucw.cz" , "mark.rutland@arm.com" , "jacek.anaszewski@gmail.com" , "robh+dt@kernel.org" CC: "linux-kernel@vger.kernel.org" , "Denis Osterland-Heim" , "linux-leds@vger.kernel.org" , "devicetree@vger.kernel.org" , "uwe@kleine-koenig.org" Subject: [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+H8QD2bg== Date: Sat, 21 Mar 2020 08:15:52 +0000 Message-ID: <20200321081321.15614-4-Denis.Osterland@diehl.com> References: <20200321081321.15614-1-Denis.Osterland@diehl.com> In-Reply-To: <20200321081321.15614-1-Denis.Osterland@diehl.com> 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: <7A1628E3E162584FA7567B765B51EAAE@diehl.internal> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-TrailerSkip: 1 X-GBS-PROC: byQFdw3ukCM+zy1/poiPc0+a0+k5FkEP7dU6yETXoKGIxEHL1LfZDAUVf0X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