Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp450225pxb; Thu, 23 Sep 2021 03:52:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxiHDH9gKBtxP78sQzYafHiuOKYjSOWwq7Kr0n1Ki5cbV5Q4A1leAm52uQ97tdsF8rfplC X-Received: by 2002:a05:6638:41a2:: with SMTP id az34mr3424102jab.4.1632394334355; Thu, 23 Sep 2021 03:52:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632394334; cv=none; d=google.com; s=arc-20160816; b=TjiZJyVOIg1jSFOXCa4ASheZej0VbU9JVGPD6igixXEJugDgtUVbHsRRKHaLR2fwOh tHoI6YLfa1vm/ysen9ov2u440/TFSb30k3d/VwDBjQW1DZoGPJG1UZvQd3tpogOlYhs+ l7pTczipai7Dtv8gaVk58th0XeB3iB8G1X25B13WT6OHbR3bxXp/C1m06hYp9Vcc5Do8 vBxdD0MFCRMXKC/tfUOXW4AC/yILJ/fubnJj+eth1vmCCuxTdZ98a6+kOJ2sBhCWaHN6 JGAhCn6f7KKcRDPaJRgadg8NSOj35jJKTrFTX0gcC6MGwhZJcD9Qv4WZZ8Xc2peM0GX7 alWg== 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:dkim-signature:date; bh=f2L8OJnSochRb4I31Z8vN0+6+yeT3nLLjWi+V5nnOjw=; b=S/HoxdzH4YUtl7P74JgwkAnbdbriJJsf1GJchp1akfns7bmU8DfDPJP38xRvJAmSeq /qayULPs/0N1+iRq+Al8qiXVy066PQYcNVsYp1xW6D+CfJ7h54/4w5W2u0nn6p+UXKt1 07r0tps7cuhdmJCWKrhnTP3rBZfab/2VdqgTkvGnY8rr3i4s2VBHxMX9ZPRfusL7pxAf YI+19EriYQ4Z3sWa805xNy9qZH6byS+ZFsnN/9Jiyka473p4YS4MOzBPToy9UlYOaGjW OXvpplaioHHbLYc8/9mbr7P5iO8dsiTLJ1ZaJt0BwsH48P9pUihGRzlQ2fjfijEvU1Hq I3tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=Q8pmoguZ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i12si6306455ila.58.2021.09.23.03.52.02; Thu, 23 Sep 2021 03:52:14 -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=fail header.i=@weissschuh.net header.s=mail header.b=Q8pmoguZ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240448AbhIWKvY (ORCPT + 99 others); Thu, 23 Sep 2021 06:51:24 -0400 Received: from todd.t-8ch.de ([159.69.126.157]:40949 "EHLO todd.t-8ch.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240407AbhIWKvX (ORCPT ); Thu, 23 Sep 2021 06:51:23 -0400 Date: Thu, 23 Sep 2021 12:49:48 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=weissschuh.net; s=mail; t=1632394189; bh=qjdeXlozuivPeR0eioe8PmC1RMurpCpfF51tRU3+QM8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Q8pmoguZ5rt6w13+fKgEO/8PREU8+OdNS6URzNpfyT+Kup/dnjTmmsm7JbT+FiTFQ AO/poVTmHKqo7+aRLtgCJ+A4M20fnLVuN7Ze+iMvj6rRMVIwnJdjfkyyv6x03UJBHG c8A+TqBeqqzfFEoWKAnIU4gXkGv83K7gjvJ49HSc= From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: Lee Jones 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: <4bb3051e-2550-43c3-afed-d4b00850126e@t-8ch.de> 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: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-09-23T10:48+0100, Lee Jones wrote: > 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. Hi Lee, thanks! Also I'm sorry about my nagging before. I was not aware you were on vacation and saw you respond to other mails. Thomas