From patchwork Sat Jan 7 18:26:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg via B4 Relay X-Patchwork-Id: 13092274 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0C9D3C67871 for ; Sat, 7 Jan 2023 18:27:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232859AbjAGS0w (ORCPT ); Sat, 7 Jan 2023 13:26:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232564AbjAGS0Y (ORCPT ); Sat, 7 Jan 2023 13:26:24 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B9523F108; Sat, 7 Jan 2023 10:26:23 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 502F8B802C6; Sat, 7 Jan 2023 18:26:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id F0F58C433EF; Sat, 7 Jan 2023 18:26:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673115981; bh=G9hzMu5p0tLB7xBK5DaOacF6SFxP5wjAYhU58D1pA54=; h=From:Subject:Date:To:Cc:Reply-To:From; b=s7SME9CLzwcTO/ASMmBSkFdogveRGnrTzvOdb0R/wUCIMbl12h0AAX6mJfV+N/YT5 Q6CeS34Bbfd8kFxZIG/tClO7GSrWtHTdQy1K5G8xn+b/jKPP6nD6fbKwnKcoVyTvkE L4GmB62ApgAjt1hooWH0M6/Ysb214IItHyrMMKeDxl7ybzUppwU01l3Sghai0DEgKj 3EBCDpydzGHkoF6Ml3yNh2ZrCLl3cSwVaD/b8Ke/VlUsXeQ2GRrMZKPTjUNMHLvnbE jc3OkOtpk+Zxh+/92Zp4oWzgtwyZs6qi047z3PnSmi5cJ3qYzUGbVpinxuq4Ctih5D jjOQRfS49bhsQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id CFC7FC46467; Sat, 7 Jan 2023 18:26:20 +0000 (UTC) From: Sam Ravnborg via B4 Submission Endpoint Subject: [PATCH 00/15] backlight: Drop use of deprecated fb_blank property Date: Sat, 07 Jan 2023 19:26:15 +0100 Message-Id: <20230107-sam-video-backlight-drop-fb_blank-v1-0-1bd9bafb351f@ravnborg.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAEe5uWMC/x2NQQrDIBAAvxL23AVjaIV+pZSy6hqXWA2ahkLI3 ys9zhxmDmhchRvchwMq79Kk5A7jZQAXKc+M4juDVnpSozLY6I27eC5oyS1J5rihr2XFYF82UV7Q 3wJbM12NDgF6x1JjtJWyi72UPyl1uVYO8v2PH8/z/AF/VluqiAAAAA== To: Nicolas Ferre , Helge Deller , Alexandre Belloni , Claudiu Beznea , Antonino Daplas , Benjamin Herrenschmidt , Paul Mackerras , Greg Kroah-Hartman , Robin van der Gracht , Miguel Ojeda , Lee Jones , Daniel Thompson , Jingoo Han Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-staging@lists.linux.dev, linuxppc-dev@lists.ozlabs.org, Stephen Kitt , Sam Ravnborg , Ludovic Desroches , Bartlomiej Zolnierkiewicz , Daniel Vetter , Souptick Joarder , Maarten Lankhorst , Jason Yan , Jani Nikula , Arnd Bergmann , Kate Stewart , Thomas Gleixner , Laurent Pinchart , Allison Randal , Enrico Weigelt , Alexios Zavras , Andy Shevchenko , Thomas Zimmermann , Javier Martinez Canillas , Peter Suti , Geert Uytterhoeven X-Mailer: b4 0.11.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1673115978; l=3981; i=sam@ravnborg.org; s=20230107; h=from:subject:message-id; bh=G9hzMu5p0tLB7xBK5DaOacF6SFxP5wjAYhU58D1pA54=; =?utf-8?q?b=3DFNO5zZgcfHvw?= =?utf-8?q?8aK7wMXzvmp/dYtdmD0IQvqUZjY3X80l+WPDDLGTQyLG8MFQqLK6OxIku5yHTG4f?= c85wS6ixCns7gLN5/2aI3NwPuKvJlO0zM95nxUrNYAzqepPg69ZN X-Developer-Key: i=sam@ravnborg.org; a=ed25519; pk=R0+pqV7BRYOAeOIGkyOrSNke7arx5y3LkEuNi37YEyU= X-Endpoint-Received: by B4 Submission Endpoint for sam@ravnborg.org/20230107 with auth_id=22 X-Original-From: Sam Ravnborg Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org This series refactor backlight users to avoid use of the deprecated backlight_properties.fb_blank member. Stephen Kitt and others already did a lot of work and this is the final touches. Patches 1-13 are independent and can be applied individually. Patch 14 was already sent by Stephen and included here to make the series complete. The last patch may have to wait to avoid breaking the build as it depends on all the other patches. The series touches several sub-systems, so with acks I could take them all in drm-misc. Or we can let the subsystems take them and wait until next merge window with the final removal. As new users of fb_blank do not pop up that often, waiting one merge cycle is fine. Sam To: Nicolas Ferre To: Helge Deller To: Alexandre Belloni To: Claudiu Beznea To: Antonino Daplas To: Benjamin Herrenschmidt To: Paul Mackerras To: Greg Kroah-Hartman To: Robin van der Gracht To: Miguel Ojeda To: Lee Jones To: Daniel Thompson To: Jingoo Han Cc: linux-fbdev@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc: linux-omap@vger.kernel.org Cc: linux-staging@lists.linux.dev Cc: linuxppc-dev@lists.ozlabs.org Cc: Stephen Kitt Signed-off-by: Sam Ravnborg --- Sam Ravnborg (14): video: fbdev: atmel_lcdfb: Rework backlight handling video: fbdev: atyfb: Introduce backlight_get_brightness() video: fbdev: nvidia: Introduce backlight_get_brightness() video: fbdev: radeon: Introduce backlight_get_brightness() video: fbdev: riva: Introduce backlight_get_brightness() video: fbdev: aty128fb: Introduce backlight_get_brightness() video: fbdev: mx3fb: Introduce backlight_get_brightness() video: fbdev: omap2: Introduce backlight_get_brightness() staging: fbtft: fb_ssd1351.c: Introduce backlight_is_blank() staging: fbtft: core: Introduce backlight_is_blank() powerpc: via-pmu-backlight: Introduce backlight_get_brightness() auxdisplay: ht16k33: Introduce backlight_get_brightness() backlight: omap1: Use backlight helpers backlight: backlight: Drop the deprecated fb_blank property Stephen Kitt (1): backlight: tosa: Use backlight helper drivers/auxdisplay/ht16k33.c | 7 +-- drivers/macintosh/via-pmu-backlight.c | 7 +-- drivers/staging/fbtft/fb_ssd1351.c | 9 +-- drivers/staging/fbtft/fbtft-core.c | 12 ++-- drivers/video/backlight/backlight.c | 2 - drivers/video/backlight/omap1_bl.c | 67 +++------------------- drivers/video/backlight/tosa_bl.c | 7 +-- drivers/video/fbdev/atmel_lcdfb.c | 24 +------- drivers/video/fbdev/aty/aty128fb.c | 11 +--- drivers/video/fbdev/aty/atyfb_base.c | 8 +-- drivers/video/fbdev/aty/radeon_backlight.c | 10 +--- drivers/video/fbdev/mx3fb.c | 8 +-- drivers/video/fbdev/nvidia/nv_backlight.c | 8 +-- .../fbdev/omap2/omapfb/displays/panel-dsi-cm.c | 19 +----- .../omap2/omapfb/displays/panel-sony-acx565akm.c | 23 +++----- drivers/video/fbdev/riva/fbdev.c | 8 +-- include/linux/backlight.h | 22 ------- 17 files changed, 41 insertions(+), 211 deletions(-) --- base-commit: a53be8dae86fe5d3567db245177e814e58210632 change-id: 20230107-sam-video-backlight-drop-fb_blank-d6feb73572ff Best regards,