Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3387957ybb; Sun, 22 Mar 2020 23:26:02 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvYBkBKJyDRj3oP+eYOqw/lhkLRgWOrhem8CCsmmfYrGGpA6QALZDtqIGjmTF4hXZK4yKxm X-Received: by 2002:a9d:3a45:: with SMTP id j63mr15672436otc.71.1584944762055; Sun, 22 Mar 2020 23:26:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584944762; cv=none; d=google.com; s=arc-20160816; b=QdbYPqvPsikEOyKOv5CAUVf/PgIXzp5DY3AlnOjjJL3qGyNErdVrvX6vQ+t+I3U94d RJgD0c2mQxCO0ZUUDBE7GrBml4b6BP7crc0sJI1i6CKQsgmwykmefxWOOzL8U5/UC41h 66VXdCaCHqQ/2dPic7msXOYLpzDyU/CegNR7a8oN1UjkVS3kBxO+0vT3uPckpJ2n6u9M vhZoLLBAHnPM0Biy8Bb+NSp1UU9XXOCbelnQ7U2Ng22XPogragb3JhtajQDxsc2oL1oF Hr6+DS8ljHQVQNiB9dRr/jsyGyGhtseNfTWAg9AjKdlbNFmSMvJKngw+Tt8pS1V+4q9w XcPg== 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:message-id:date :thread-index:thread-topic:subject:to:from:ironport-sdr :dkim-signature; bh=79ymEayEp2gQQw0zEOKdH7KJ1bsGU0lvzPdso8hXutw=; b=PKrWmYXf4Fam8jwpzNjp1iFmPJPTkne1esaLnHzRlMS1iCjQDw16TnU/9cndc+7kTW RqgUGn9LxDpJJArwXkQ13z+WUQ+XcRwqFQsqThsYUxFqAfNWICrAaN9IkHgAz9//R6ej f21pbQEJyRCJr9i0Gi1BEXAczSIw/OZmtMhqJo6L6VTj5d+F7Gs2P7xpx7iS5lWIXMua 3Jm7beEsHrwHC1LnNNmDqhIgZxJwOtX70rgkfL8KvWzjWcWR5Q+j/deySwjmcnJ8IuLT qEcKnRVzAnK87XA+Jif2xYhqmDazhBFZQWb16IYwgmLklXBn9CnF0WstE8RIErW7rQ9E /1SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@diehl.com header.s=default header.b=c1kp9RMC; 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 a12si6938496otf.88.2020.03.22.23.25.48; Sun, 22 Mar 2020 23:26:02 -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=c1kp9RMC; 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 S1727295AbgCWGYw (ORCPT + 99 others); Mon, 23 Mar 2020 02:24:52 -0400 Received: from enterprise01.smtp.diehl.com ([193.201.238.219]:8694 "EHLO enterprise01.smtp.diehl.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727142AbgCWGYw (ORCPT ); Mon, 23 Mar 2020 02:24:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=diehl.com; i=@diehl.com; q=dns/txt; s=default; t=1584944691; x=1616480691; h=from:to:subject:date:message-id:content-id: content-transfer-encoding:mime-version; bh=79ymEayEp2gQQw0zEOKdH7KJ1bsGU0lvzPdso8hXutw=; b=c1kp9RMCyaBopTrXLj550MfvUi4P9ACwy+vPpbX3tE+hk+fouTCZzrwc gooBe/WzqlUawimXhFpNgCgdKguKR8s//FFbQSAUYaHYVDmTzEHYJQsjR Ek46AZGVJ6p3Tbz4d3z1rHik9oIYbhD1yU7rPkolaEy/KFcqY6zkYkoCO dAYPgGQo4V7fEnw65SDq7z+yRUbs/SmNFdZtSYABmwo+U6fGDqrHBFtYU 38UoozK6w9Ges/M72hYSqstHQv8YLhXpOsHe19e4RwxwnPV9aS21rKoJh aNuJgkTiyY6pLeaj4anuYLT/fGVQbrfqrW+eViZ3QZALYDFOJw03DaVZA g==; IronPort-SDR: nIiMowGo+x9RwXUW9MjD6Xj79nCED4MSq/4Mu51lmTdpVDzOj1z5Mx2AbofzT6NlwJxm//vosP iTyCmlg+YLUA== From: Denis Osterland-Heim To: "linux-kernel@vger.kernel.org" Subject: [PATCH v4] leds: pwm: check result of led_pwm_set() in led_pwm_add() Thread-Topic: [PATCH v4] leds: pwm: check result of led_pwm_set() in led_pwm_add() Thread-Index: AQHWANvAJMLMvmSD7k6XGa70NKV6/Q== Date: Mon, 23 Mar 2020 06:24:47 +0000 Message-ID: <20200323062407.16617-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: <4838A0E35562DC498631EB0CDEC1719D@diehl.internal> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-TrailerSkip: 1 X-GBS-PROC: PkB65aL1SqtESF35r/jQn9knrvSb6ZZz9+PQqUlde7IWZUXeLjBmV2cmKgrOqBZw Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org bGVkX3B3bV9zZXQoKSBub3cgcmV0dXJucyBhbiBlcnJvciB3aGVuIHNldHRpbmcgdGhlIFBX TSBmYWlscy4NCg0KQ2M6IFV3ZSBLbGVpbmUtS8O2bmlnIDx1d2VAa2xlaW5lLWtvZW5pZy5v cmc+DQpTaWduZWQtb2ZmLWJ5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