Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp409184pxb; Thu, 23 Sep 2021 02:50:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykvn2fhDgLMtx64GNxzTxkskb16LfmBYkdZ6cUwpkXpn4czrVpBHjCoTyaxAevBw9Nm0da X-Received: by 2002:a92:cdab:: with SMTP id g11mr2901040ild.306.1632390608335; Thu, 23 Sep 2021 02:50:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632390608; cv=none; d=google.com; s=arc-20160816; b=u6AZVsGJFE7OdFdC3mgPjvFzW3UCwWSLzwCZQhfA6pdiN/jKnt5NJH7SVat4KevWJ5 RyrWSGRu5LC94iQMOoXaP5kfyOi9i7e+LTglJuEZA5ctxKSDlY4urxLCzGR4u4lgSeGZ /0KZylq+o+JWVk38FnIvB3koMPUzkgV6ZZZWgWW+iK+Agoowzht3wV5s0l5JdkAQBxxY onkDX69C5jS7/wTnK3xwrQJsIwimzN15tosRwl1Oi1LXE/LbklkOXv5uxLlISbvFNeWA dIX1LUNeosgtYWBT879XHn2aEPKLAgvlLWMRc7CLc3wWYZs6COjCWCrL8Sir/P44AzlJ IRlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=6+eKVp8taoHSdR1ibPn1ZGg0knOd1Pb0ImjfZkR19aI=; b=swyQJrf6xlcN9J4Hgn4MfgTpun03TiqApbVe5ET2aO6NUF/aMr0q2pn57dchQDsu4X trY9LV5oJNcjycx8nb5nby3IRberxq5aJ3xdw57DWT2cb5wzX5rec8orGCgPQboZqud0 QwJ+I2mzL5khp4duPIBtgiJHwnAzpxvjQH+m8Jp6FQSYOzr3dsx1PMlvPl8DGeXfBk8l Zk38UZ0RdUDINDJAqgRZNU+8+lACO8ZtyR6CL5S2p/tO0zu+KZyvbLHgslBbjb2Tx7m2 FfgVzXLRuc7/Xe0DFxkLIA28emy7Z1iyKQzrTsdhX/r15h38PrMhfUu5+jfD1OltlnpH /NOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GTnuaG2v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d6si5658816ilv.154.2021.09.23.02.49.49; Thu, 23 Sep 2021 02:50:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GTnuaG2v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240266AbhIWJuL (ORCPT + 99 others); Thu, 23 Sep 2021 05:50:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240268AbhIWJuK (ORCPT ); Thu, 23 Sep 2021 05:50:10 -0400 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0824C061757 for ; Thu, 23 Sep 2021 02:48:38 -0700 (PDT) Received: by mail-wr1-x432.google.com with SMTP id w29so15366922wra.8 for ; Thu, 23 Sep 2021 02:48:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=6+eKVp8taoHSdR1ibPn1ZGg0knOd1Pb0ImjfZkR19aI=; b=GTnuaG2v8n/EfVqZaGG/LrTewIRWMm7WeWMV3j9m4TQfzK6B0a4MoXuq7vYMKR5sRe OhoSOfgq+MGSmZTFC4dvGYouByjVRmagaBS3cEfzpPL+bxGgJi88cjdg6u/Q8NdSHlnr TpmTZ8f9YvBm66pwkXvPEHOTo1NB6sQLvtvYiAGLUfBVIxL8WW+ScDnGVm6p0pMIKP9r IjZoQkoj9ZzeOJzbf75qrDRdryulrO0JYGBlK59x+4zuwE2eYvEVvBFRwLgVuVscci48 Jto3AO2FZ9nqFAOzVOhfpYEIAnXDM00By37MSsbuC3c/36E4Y5BPxSno7NjlJkfb7C8+ KtJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=6+eKVp8taoHSdR1ibPn1ZGg0knOd1Pb0ImjfZkR19aI=; b=zGtC//Ye3GRNox4kt63aJAiO/XGWU48nRpaailbzZDGS7G1QGpuka8D4Rp32CCn6X3 rSJDsJ7YUG3cMC52RkqU1fjc5JYmkhUh5C+y1ePAtYj+Hs3SjWiA8tGKw6C+AcgE81Ik xQklI78Ct84iouKcZkEcmBCygDLv746tzlTsu571j9mF0A4CPGRLb5my1xj+Vk+eKT/u F/byGkGyFW21kdPq/Ah7uw/U6zssnBRD1I0/AUKnv6sSxsjhEBvPZRwGnjG0gMVvYu0u gY244jjC23Hi+LqyJSxsITBV0vThR6hWYd2ac9DnQLVQvgmHp4gM10qSRezVZlkyFqeS Lu+g== X-Gm-Message-State: AOAM532tO2ZwURgvqRhX3sOsM8+aJj/5SHkwPJ+s+4e4CIqHGeLsuK13 VzLBZTujo99JKxXLdqQVUyDl0A== X-Received: by 2002:a05:600c:4105:: with SMTP id j5mr3402523wmi.138.1632390517246; Thu, 23 Sep 2021 02:48:37 -0700 (PDT) Received: from google.com ([95.148.6.233]) by smtp.gmail.com with ESMTPSA id g22sm7965648wmp.39.2021.09.23.02.48.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Sep 2021 02:48:36 -0700 (PDT) Date: Thu, 23 Sep 2021 10:48:35 +0100 From: Lee Jones To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Daniel Thompson , Jingoo Han , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] backlight: propagate errors from get_brightness() Message-ID: References: <20210907124751.6404-1-linux@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210907124751.6404-1-linux@weissschuh.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 07 Sep 2021, Thomas Weißschuh wrote: > backlight.h documents "struct backlight_ops->get_brightness()" to return > a negative errno on failure. > So far these errors have not been handled in the backlight core. > This leads to negative values being exposed through sysfs although only > positive values are documented to be reported. > > Signed-off-by: Thomas Weißschuh > --- > > v1: https://lore.kernel.org/dri-devel/20210906215525.15418-1-linux@weissschuh.net/ > > v1 -> v2: > * use dev_err() instead of dev_warn() (Daniel Thompson) > * Finish logging format string with newline (Daniel Thompson) > * Log errno via dedicated error pointer format (Daniel Thompson) > > drivers/video/backlight/backlight.c | 22 +++++++++++++++++----- > 1 file changed, 17 insertions(+), 5 deletions(-) Applied, thanks. -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog