Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1740747lqg; Mon, 4 Mar 2024 02:12:04 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXGWHHQBY3vla7RsiIs/BazLhuscchO8ZmJ07l53MSoqngl17gFvZUz4mJ7jxVCmF1aGs719cFrRvC4qIQOfNl0SY7GIeAeQWEnODUA0w== X-Google-Smtp-Source: AGHT+IETZkrjngjtyFAdKzz2wZl3j8oBnASlrslZfyvA4epAv60fc0IFALo0ifbB6tddaezsK6h8 X-Received: by 2002:a05:622a:1a19:b0:42e:f023:c09a with SMTP id f25-20020a05622a1a1900b0042ef023c09amr3985531qtb.34.1709547124084; Mon, 04 Mar 2024 02:12:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709547124; cv=pass; d=google.com; s=arc-20160816; b=KW8PGdsxG1G2SaLt+qnT9wYeYz6U9bUuXiYqG6x3FWotCGA69ts2KDgvVxF4WVNAay dpQtVj2t2BI3c+Wj467FWzTBGrjfG95r03oDaNvAYvA3+D2yjot3BenMgiNeJQaDIK4T vT8K2CcwYrJsNHOD0aYt50UPc1V1ICKEA623mSrUp31n3Y5hZZUYnTAmthceFy6rGHan TapusDPTSlkvkInJcU8MZgRBrq47nXf8BlLxsvEsicePrAb4ORgMZwFMcNoK3WH+XjMI s2h/TMcirP7GJJV15VT7rqVdjKlqeNCunJRwprxViV2nMmwHR/zPARjU5pRAxpVhftjl oJaw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=eJK/ZZpOUq8+bFA/FBthzsUU3+Ts6yS8JiIZkaVwCyU=; fh=vEF6mIuASDqg6UODKGIjtqXSVvuW/IRPkwMYg2Xl+0U=; b=FIfVj/80T/xXi67mmFHdJux2YfE3NLvizJPh280XnDcqLIGGrCRIhWNA6ciUw+qRX1 rEmqo0NgsLJZQCozMzMOYlJToTeMRsM3aPT2eCNt4jzocqMtIJmJSceK0OD480hA/d8z pJPnjjg7EUeJyuOjEq6X7JrBG9TSzC6VOwrpwFzF2MEbRBm71p1kr324URZUxcSBf6L0 BNXFQ9hkDhwF+n5w5+nXTUILij9ECM31xke/SkZ7stEU0y61gNxucHou5euBrZkfncqj fnaX24tIpaUAsZm8xbUqURL4jdEgkBYUEnkP43qbgcTUBbQDJlH0XerV3As4UvYFuLFx O2tA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hlyBhynW; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-90381-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90381-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u18-20020a05622a14d200b0042e58e50e56si9918615qtx.41.2024.03.04.02.12.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 02:12:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90381-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hlyBhynW; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-90381-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90381-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id CF4CA1C21DA6 for ; Mon, 4 Mar 2024 10:12:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E92FB22085; Mon, 4 Mar 2024 10:11:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="hlyBhynW" Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 63389208DD for ; Mon, 4 Mar 2024 10:11:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709547116; cv=none; b=Hs2eEV5NS6r8y1dPvk9jfd8HpAZpiJWK8yy1zM5j4fCdGMawUwGqiar4dX7IJcEqujEJBAUJAf01mvtP5tv6cpHw9EXb5qbEWGEjN+2+7s2QeIyvR+YZ9jMj9Qt7fiCTecrVrz2mEkAmNFwkJvNlbcv5PrtiorpMKxzH0G8LYbE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709547116; c=relaxed/simple; bh=OH7NMQUj9xup9rOtpZMXbczseEaMEMJgnLbgyXngbZ4=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=Z1FYAI9btGO/nQx/GGmafNgyF3ghlYrJaBAjPMEKXI374E+TSUvOSGh2oU97By7Pt75nh3IUao5V9NhzcxrqNM7s0wuSa6eGHMq7LIl8KfAbqMKGJVWQps8s4EL4DF9zSzTr2fT/GQQrBSpCNIFLxfAGROI3jXCd/LCdq4NZGn0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=hlyBhynW; arc=none smtp.client-ip=209.85.208.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-565c6cf4819so8855596a12.1 for ; Mon, 04 Mar 2024 02:11:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709547113; x=1710151913; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=eJK/ZZpOUq8+bFA/FBthzsUU3+Ts6yS8JiIZkaVwCyU=; b=hlyBhynW729WFxDQjyzZsDDcaree00/gxK60+775ICMvcymNJO1Qvd78odEq5fm/ew m8nCNKv3xNh3ym8HbYPRA09/zgm/QENu1HpxhgXLHrRzeIPsKWZnXJnUjqpOohl3Y1+s /EyvcRFDR8YiK9vqX+r5jxcAjGwmhpMYUYhTjWIxVFp5J0X7/IottpFBpuLD/t2pROpc RFG+2f5r7/gFWF6rIkfeXax6z6q8XrdxxpIFVlcBiHX9kOi1tpPwroYoHsytfghuqobS UGocS172vg7S+UzzfmH+4DLx+fYnNSBvuUoqt4+rwYCIMFmLDxYybuMhx2xq5+hXC+3J ZSog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709547113; x=1710151913; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=eJK/ZZpOUq8+bFA/FBthzsUU3+Ts6yS8JiIZkaVwCyU=; b=smbug4+GLkAM7ZGDv5mLnO28CwawHJqLReGGXh1UZFjdbKlFeG6Cfdf2M+6M7KqfTJ SmKfIklj+MEkpUgjTCGAioXjr8egS11156pLqdqJyDZeDiwCxGZgp0LM2mKuSz+n8LSS ZyjOfrZOESq5wwYNtOvsQUOU1KEpyqbbxFAsCXibp/+/Ei+wO2Ut8oYMuwqEktwNarRT Qnlq1u5YyE6GJMmHE8eu9EiAdWLjCNprmvSgkRxN/mdklcil1UyinRk2e/e1Wa7XAnQv Cza48bVw2TC5VTh/cCsyPCfYQUdz7hpJOq7Xdhgek6OAOKzMQbgq9zJfYr+/9n4yi5ow vg/g== X-Forwarded-Encrypted: i=1; AJvYcCXNQhbLECPrhcjXW2SOnNV5UCBJBdE8H8KyGm09JHpd1WegacnyDnWX+SEahCUT3WKKC5vtVflWwLVYUSnMVvmWWHHjj5/ttKofEwyu X-Gm-Message-State: AOJu0YwjB7+iK8TvJ4kn1vLTLWTbHE6TFQl6rrZPuMnpmnqMF8TbekbO X+rQlqXhFZ3fNcMXR00O3pmD/OqEGkJXGMqepc4YB22LgPsRuKAAo3rww5xyjbM= X-Received: by 2002:a17:906:1155:b0:a45:73b0:bcc3 with SMTP id i21-20020a170906115500b00a4573b0bcc3mr705495eja.34.1709547112780; Mon, 04 Mar 2024 02:11:52 -0800 (PST) Received: from [127.0.1.1] ([178.197.222.97]) by smtp.gmail.com with ESMTPSA id ef11-20020a17090697cb00b00a44bc99cd89sm2938481ejb.42.2024.03.04.02.11.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 02:11:52 -0800 (PST) From: Krzysztof Kozlowski Subject: [PATCH 0/7] backlight: Simplify probe in few drivers Date: Mon, 04 Mar 2024 11:11:37 +0100 Message-Id: <20240304-backlight-probe-v1-0-e5f57d0df6e6@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAFme5WUC/x3MQQqAIBRF0a3IHyeoRYO2Eg00X/UpUjQiCPeeN DyDe1/KSIxMg3gp4ebM4azQjaB5s+cKyb6ajDKdalUnnZ33g9ftkjEFB9lqD2gs6HtDtYoJCz/ /cZxK+QD3cVb4YQAAAA== To: Lee Jones , Daniel Thompson , Jingoo Han , Helge Deller Cc: dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1126; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=OH7NMQUj9xup9rOtpZMXbczseEaMEMJgnLbgyXngbZ4=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBl5Z5dtncXmblc14GzkUUxjTcJ79A3s5elTn7Qu /wxqyXw/CGJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZeWeXQAKCRDBN2bmhouD 135QEACP8yEtprvbd9at0xw0H2t+hJLRhjMI+Ro3IfuXFHyJyqBFmK0784zd1uuuICJCToCMhCk I4lE8leqiLL2WM/2dCZLBkPdy9oXnZ4MYAi1jXXmkljBr4tyHFs6ZbaIS4SZxYWG5x/7XGok+r4 o09ykWvDXg0SjjvwHCKAPl7MlBOQrrN3XblcBBDSvE1KKz5lUrWPTUh6o1Kkw/8Qx5oc3aSxcpq Qwn9pxptQ62HWVmlbIISMUUMlC/qzML+MlEx8k5JuD7ECLA6UkJ2d+E0zMOY3hkytKOFENnLiQ2 U8X5F+gGqIv5kexKKXS/HmWAHS9vKrA3UlPjI11r/ggruvLdkc8VPOo3MfrBE4IN+yDD04d+Wez EEHxsWDbcwqvcWdtOY04P7roKxbtSCHBq2MoVbgHoBEbjVpZQN6ngIg44eUPTP5PFYE4sU4zLQI fjtkvo2wSlNdFhnHxvPx6rhgtMRgt1xF+GfNT2yJz+zVgqSbhG+i7bnHK70LCZ6Gvuxv6xo9r9/ GDRkLun9z4dDpm3XOgWAT5vi6+5mE7p4Xm7YtEO1TDnXmk8hArv2O8iFBpNdsnCRGbnIFXlBqP6 vZLzU5YWBVi7MfziBeYwz/u5lzxzN+HFD6INptjm55Nff+kgSDCA5zmn5nzRWtkn9bzC2xOz5Ur aScFZfLhOOHRV8Q== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B Hi, Simplify old code in few backlight drivers. Best regards, Krzysztof --- Krzysztof Kozlowski (7): backlight: gpio: Simplify with dev_err_probe() backlight: l4f00242t03: Simplify with dev_err_probe() backlight: bd6107: Handle deferred probe backlight: as3711_bl: Handle deferred probe backlight: lm3630a_bl: Handle deferred probe backlight: lm3630a_bl: Simplify probe return on gpio request error backlight: pandora_bl: Drop unneeded ENOMEM error message drivers/video/backlight/as3711_bl.c | 6 ++---- drivers/video/backlight/bd6107.c | 9 +++------ drivers/video/backlight/gpio_backlight.c | 10 +++------- drivers/video/backlight/l4f00242t03.c | 34 +++++++++++++------------------- drivers/video/backlight/lm3630a_bl.c | 13 +++++------- drivers/video/backlight/pandora_bl.c | 4 +--- 6 files changed, 28 insertions(+), 48 deletions(-) --- base-commit: 1870cdc0e8dee32e3c221704a2977898ba4c10e8 change-id: 20240304-backlight-probe-31dee1efe662 Best regards, -- Krzysztof Kozlowski