From patchwork Wed Jul 31 12:33:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Zimmermann X-Patchwork-Id: 13748690 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 65E6AC3DA7F for ; Wed, 31 Jul 2024 12:37:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:To:From:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=BL0a25ZpJSPsxL2onqAlXke+80fsRhhcQq5WevDlKfo=; b=zZHwixNeHbz6HW LLapXsvW6ACUwqEPxPSI0UGFtZCRtGYRDgj511aH/K4vIGeAVUPFBP8p/gZOqTyiQVFwEqPSFQn4F Z7ihOYTlnzLRZ05mA0LQwCeqWSxsliz7k1eeJdoXN5UXNRrgv2DMrU0ogyIz3n49We9jT25zgaulv N+/lLFTK63pWwXURrJz0go0n8bAMsrP8vbuwZJGZO7+Oj5D90nwEOZJHWQU7qI8UB1KawIakp0JSd 9+x1pVM/ZjcwiEPGgLb7tkhXoyNwWMKzL1EgsVU65gEv4Ia1OXZ79DihYGei1BuQa4mLWKTN/6ceM Vey39DtNO9nTSlX5/jHg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ8Zo-000000016tJ-0W3P; Wed, 31 Jul 2024 12:37:08 +0000 Received: from smtp-out1.suse.de ([195.135.223.130]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ8Xt-000000016Aj-1bdW for linux-arm-kernel@lists.infradead.org; Wed, 31 Jul 2024 12:35:21 +0000 Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id CFD8321297; Wed, 31 Jul 2024 12:35:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1722429306; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BL0a25ZpJSPsxL2onqAlXke+80fsRhhcQq5WevDlKfo=; b=EWYetj7cxiNcEAudl7AaVzA7UAEDID9VQDhykDAdp/e8YpJsc8KeHGLSqrLHJcPNUnU87s z2fubdznv2EefbLtLzKrEPvmeXRoVyJz+IkJvm6KzZzVMnSJSidoJZRG8Eo+yeXPO1Utgi kF/7yA/jawnSv5UDmzIldKwrwuMqJLw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1722429306; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BL0a25ZpJSPsxL2onqAlXke+80fsRhhcQq5WevDlKfo=; b=ltkFZ/fTjFcfA3FGU+HaOYixBMluk0zMv8sR8SNBoKLF+1zyBEzzuAJyx1QeZCHWcLbbMb X7k2Dksnd+A4L6CA== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1722429305; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BL0a25ZpJSPsxL2onqAlXke+80fsRhhcQq5WevDlKfo=; b=v91YYjAZdsWG59O1Xp15MDI28vZZ5dpuDxs1rKDMqSlmfGlToTUop4OhyFaiB2YOzgyjHf NCyhI6kbxbK13RAy/wb/Qk6CrO3lKKNH1Fmki7WrWIeoCcvMNzBdEOiF14N+XbAONxu/5x UrbHRR8wIJem2Pi8P3OE+gG1w2PDS7A= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1722429305; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BL0a25ZpJSPsxL2onqAlXke+80fsRhhcQq5WevDlKfo=; b=7i3U81hEkrQYvLhi0gefeMwicywn7NelELTLmkpAUS9ibO4jyoiywbOg7SRpCN9h+wxpbX MTiRfm1gdvEuiyDg== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 8C9B013AD8; Wed, 31 Jul 2024 12:35:05 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id IK8PIXkvqmYiUQAAD6G6ig (envelope-from ); Wed, 31 Jul 2024 12:35:05 +0000 From: Thomas Zimmermann To: deller@gmx.de Subject: [PATCH 1/9] fbdev: atmel_lcdfb: Use backlight power constants Date: Wed, 31 Jul 2024 14:33:42 +0200 Message-ID: <20240731123502.1145082-2-tzimmermann@suse.de> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240731123502.1145082-1-tzimmermann@suse.de> References: <20240731123502.1145082-1-tzimmermann@suse.de> MIME-Version: 1.0 X-Spamd-Result: default: False [-2.60 / 50.00]; BAYES_HAM(-3.00)[100.00%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_SEVEN(0.00)[9]; FREEMAIL_TO(0.00)[gmx.de]; ARC_NA(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_TLS_ALL(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[bootlin.com:email,imap1.dmz-prg2.suse.org:helo,suse.de:email]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmx.de] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240731_053509_700054_8D33969C X-CRM114-Status: GOOD ( 11.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-fbdev@vger.kernel.org, Alexandre Belloni , dri-devel@lists.freedesktop.org, Claudiu Beznea , Thomas Zimmermann , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Replace FB_BLANK_ constants with their counterparts from the backlight subsystem. The values are identical, so there's no change in functionality or semantics. Signed-off-by: Thomas Zimmermann Cc: Nicolas Ferre Cc: Helge Deller Cc: Alexandre Belloni Cc: Claudiu Beznea --- drivers/video/fbdev/atmel_lcdfb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/atmel_lcdfb.c b/drivers/video/fbdev/atmel_lcdfb.c index 5574fb0361ee..4da233fb02a8 100644 --- a/drivers/video/fbdev/atmel_lcdfb.c +++ b/drivers/video/fbdev/atmel_lcdfb.c @@ -152,7 +152,7 @@ static void init_backlight(struct atmel_lcdfb_info *sinfo) } sinfo->backlight = bl; - bl->props.power = FB_BLANK_UNBLANK; + bl->props.power = BACKLIGHT_POWER_ON; bl->props.brightness = atmel_bl_get_brightness(bl); } @@ -162,7 +162,7 @@ static void exit_backlight(struct atmel_lcdfb_info *sinfo) return; if (sinfo->backlight->ops) { - sinfo->backlight->props.power = FB_BLANK_POWERDOWN; + sinfo->backlight->props.power = BACKLIGHT_POWER_OFF; sinfo->backlight->ops->update_status(sinfo->backlight); } backlight_device_unregister(sinfo->backlight); From patchwork Wed Jul 31 12:33:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Zimmermann X-Patchwork-Id: 13748682 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DF95DC3DA7F for ; Wed, 31 Jul 2024 12:36:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=i1zH7EYyB9FyoHPVOfMAQJ+chXOTxZIqATMGaX1iJSc=; b=Yy84NF6kywpYYoOz+tO2ksidq1 vXzdQL2LdCVpeF5P9kj34k0VpiyBLn7EL1iX4Sw9c8x5Vqe5ziaSL4Iic6kafLxQG5Q29YbIPraYN KeABD5c+lB1L0NhrFKTCUusq5Wzt6Am170udMDg7dyZTYb2og8TgjPcfoUBxAjxP2cyZ9bOIN7mmz +qaNaaz7wTI96rsLMoen11Z8PdYZVHG7TIGscQTgS/L4ZraHjt6KaW5kvdrLKg9PWGcM6zFmMgXhe SC/nm1EDrrHok/oPr89ju+J5jNLbrYsh8jSAXbMVdkSEtLmTwT0N2WIibjZrTokqRgRnvHBPb3BBR +rbxLkUw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ8Yu-000000016Yn-3XOP; Wed, 31 Jul 2024 12:36:12 +0000 Received: from smtp-out2.suse.de ([195.135.223.131]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ8Xt-000000016Ak-0I3w for linux-arm-kernel@lists.infradead.org; Wed, 31 Jul 2024 12:35:14 +0000 Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 0F9F31F833; Wed, 31 Jul 2024 12:35:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1722429306; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=i1zH7EYyB9FyoHPVOfMAQJ+chXOTxZIqATMGaX1iJSc=; b=M09O47McCMxluobGkuYk9zQV51RyIcI7p7s1/IYnXQutcqKOHZQwmnIeJtgvGNHEzP/sst zHQd52s7qn7Frt4OjHqr+4js/xqftqpLr0TluDVyvV+ozVcIlxP85n8zZZulBR3dj2Y0cP Bzy3lZM5s6fsYxm1lf2A1XCLo1gwTc0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1722429306; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=i1zH7EYyB9FyoHPVOfMAQJ+chXOTxZIqATMGaX1iJSc=; b=z+Csrta40XGnpa8wRyz/ouxlj4zScuLXzwoSs5H8vOqgEazYYx6swEl+KKsOwv7czUXyXf hlQrnZ7nsnqWNlAw== Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=M09O47Mc; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=z+Csrta4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1722429306; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=i1zH7EYyB9FyoHPVOfMAQJ+chXOTxZIqATMGaX1iJSc=; b=M09O47McCMxluobGkuYk9zQV51RyIcI7p7s1/IYnXQutcqKOHZQwmnIeJtgvGNHEzP/sst zHQd52s7qn7Frt4OjHqr+4js/xqftqpLr0TluDVyvV+ozVcIlxP85n8zZZulBR3dj2Y0cP Bzy3lZM5s6fsYxm1lf2A1XCLo1gwTc0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1722429306; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=i1zH7EYyB9FyoHPVOfMAQJ+chXOTxZIqATMGaX1iJSc=; b=z+Csrta40XGnpa8wRyz/ouxlj4zScuLXzwoSs5H8vOqgEazYYx6swEl+KKsOwv7czUXyXf hlQrnZ7nsnqWNlAw== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id D29DB13297; Wed, 31 Jul 2024 12:35:05 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id yFExMnkvqmYiUQAAD6G6ig (envelope-from ); Wed, 31 Jul 2024 12:35:05 +0000 From: Thomas Zimmermann To: deller@gmx.de Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, Thomas Zimmermann Subject: [PATCH 2/9] fbdev: aty128fb: Use backlight power constants Date: Wed, 31 Jul 2024 14:33:43 +0200 Message-ID: <20240731123502.1145082-3-tzimmermann@suse.de> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240731123502.1145082-1-tzimmermann@suse.de> References: <20240731123502.1145082-1-tzimmermann@suse.de> MIME-Version: 1.0 X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spamd-Result: default: False [-1.81 / 50.00]; DWL_DNSWL_MED(-2.00)[suse.de:dkim]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:rdns,imap1.dmz-prg2.suse.org:helo,suse.de:email,suse.de:dkim]; FREEMAIL_ENVRCPT(0.00)[gmx.de]; ARC_NA(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[gmx.de]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; RCPT_COUNT_FIVE(0.00)[6]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[suse.de:+] X-Rspamd-Action: no action X-Rspamd-Queue-Id: 0F9F31F833 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240731_053509_452178_1A5A0296 X-CRM114-Status: GOOD ( 10.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Replace FB_BLANK_ constants with their counterparts from the backlight subsystem. The values are identical, so there's no change in functionality or semantics. Signed-off-by: Thomas Zimmermann Cc: Helge Deller --- drivers/video/fbdev/aty/aty128fb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/video/fbdev/aty/aty128fb.c b/drivers/video/fbdev/aty/aty128fb.c index f4de11f19235..f55b4c7609a8 100644 --- a/drivers/video/fbdev/aty/aty128fb.c +++ b/drivers/video/fbdev/aty/aty128fb.c @@ -1299,11 +1299,11 @@ static void aty128_set_lcd_enable(struct aty128fb_par *par, int on) reg &= ~LVDS_DISPLAY_DIS; aty_st_le32(LVDS_GEN_CNTL, reg); #ifdef CONFIG_FB_ATY128_BACKLIGHT - aty128_bl_set_power(info, FB_BLANK_UNBLANK); + aty128_bl_set_power(info, BACKLIGHT_POWER_ON); #endif } else { #ifdef CONFIG_FB_ATY128_BACKLIGHT - aty128_bl_set_power(info, FB_BLANK_POWERDOWN); + aty128_bl_set_power(info, BACKLIGHT_POWER_OFF); #endif reg = aty_ld_le32(LVDS_GEN_CNTL); reg |= LVDS_DISPLAY_DIS; @@ -1858,7 +1858,7 @@ static void aty128_bl_init(struct aty128fb_par *par) 219 * FB_BACKLIGHT_MAX / MAX_LEVEL); bd->props.brightness = bd->props.max_brightness; - bd->props.power = FB_BLANK_UNBLANK; + bd->props.power = BACKLIGHT_POWER_ON; backlight_update_status(bd); printk("aty128: Backlight initialized (%s)\n", name); From patchwork Wed Jul 31 12:33:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Zimmermann X-Patchwork-Id: 13748695 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B30FCC3DA7F for ; Wed, 31 Jul 2024 12:40:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=mkS9ADi9HZeN39Q9QY9EU8mRvpo150KmCobaHcVZbHY=; b=Ept8BsI709NGaI5EQ1Z1jSBpcr obbbFiqaPc8dk33SkzeO1Nc4/ogWU80LTeHAyCXhs4l1ZVbBaXvokP7M+nwIEk1LICVYkjAavfYjo dU44V6bdhFsgIWsi5cDntnVe1HRsPF1MwwdE+suebtuXfGrvgnlXeTINEsO7EEd0bqBU/yTAaGSMp I7FDxrVL1aZV9KWJ0ahRByLnX9hmvww4BETmTp5b1/raPvcjw3+u/ostlXsrsSYEbEtaz+vNXZeCj BffQN4LyALuLbhoneqOWzg2qj3frmk6wg8WPU3721oQKH/WeX8bcEiZBc5LKCdWiD3WFDTVaePCm4 THYZQoMg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ8ca-000000017ec-1zdV; Wed, 31 Jul 2024 12:40:00 +0000 Received: from smtp-out2.suse.de ([195.135.223.131]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ8Xt-000000016Ap-0yxw for linux-arm-kernel@lists.infradead.org; Wed, 31 Jul 2024 12:35:21 +0000 Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 425051F849; Wed, 31 Jul 2024 12:35:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1722429306; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mkS9ADi9HZeN39Q9QY9EU8mRvpo150KmCobaHcVZbHY=; b=vxk3HdSORz0X1ezizYKWXo0WtELsfy8iP7JttYBoHw/dufZrJxMByZYVfRkRcvgLa2vt+o Yv4n2WPkmErPOMQwfjzCwG3vmqMVHOon7T4nFF1rTHqosqYZlt2B818r6HeWtY4fxaVH7X PM0b0W0VhkeETDNKiJseL8tYUjQ+IkU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1722429306; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mkS9ADi9HZeN39Q9QY9EU8mRvpo150KmCobaHcVZbHY=; b=UlQxfpIsb+BmDVkUpo4O+UUYSfzbAKOs2xWrum+nOvsLIzThSjbz7SSAfVu/OR0aG974GD Jq7G6gtd8CkX4oAg== Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1722429306; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mkS9ADi9HZeN39Q9QY9EU8mRvpo150KmCobaHcVZbHY=; b=vxk3HdSORz0X1ezizYKWXo0WtELsfy8iP7JttYBoHw/dufZrJxMByZYVfRkRcvgLa2vt+o Yv4n2WPkmErPOMQwfjzCwG3vmqMVHOon7T4nFF1rTHqosqYZlt2B818r6HeWtY4fxaVH7X PM0b0W0VhkeETDNKiJseL8tYUjQ+IkU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1722429306; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mkS9ADi9HZeN39Q9QY9EU8mRvpo150KmCobaHcVZbHY=; b=UlQxfpIsb+BmDVkUpo4O+UUYSfzbAKOs2xWrum+nOvsLIzThSjbz7SSAfVu/OR0aG974GD Jq7G6gtd8CkX4oAg== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 1320513AD8; Wed, 31 Jul 2024 12:35:06 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id uNZeA3ovqmYiUQAAD6G6ig (envelope-from ); Wed, 31 Jul 2024 12:35:06 +0000 From: Thomas Zimmermann To: deller@gmx.de Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, Thomas Zimmermann Subject: [PATCH 3/9] fbdev: atyfb: Use backlight power constants Date: Wed, 31 Jul 2024 14:33:44 +0200 Message-ID: <20240731123502.1145082-4-tzimmermann@suse.de> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240731123502.1145082-1-tzimmermann@suse.de> References: <20240731123502.1145082-1-tzimmermann@suse.de> MIME-Version: 1.0 X-Spamd-Result: default: False [-2.60 / 50.00]; BAYES_HAM(-3.00)[100.00%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_TO(0.00)[gmx.de]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_FIVE(0.00)[6]; RCVD_TLS_ALL(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo,suse.de:email]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmx.de] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240731_053509_453781_95B36406 X-CRM114-Status: GOOD ( 10.98 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Replace FB_BLANK_ constants with their counterparts from the backlight subsystem. The values are identical, so there's no change in functionality or semantics. Signed-off-by: Thomas Zimmermann Cc: Helge Deller --- drivers/video/fbdev/aty/atyfb_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/aty/atyfb_base.c b/drivers/video/fbdev/aty/atyfb_base.c index a6dd1cd27125..210fd3ac18a4 100644 --- a/drivers/video/fbdev/aty/atyfb_base.c +++ b/drivers/video/fbdev/aty/atyfb_base.c @@ -2272,7 +2272,7 @@ static void aty_bl_init(struct atyfb_par *par) 0xFF * FB_BACKLIGHT_MAX / MAX_LEVEL); bd->props.brightness = bd->props.max_brightness; - bd->props.power = FB_BLANK_UNBLANK; + bd->props.power = BACKLIGHT_POWER_ON; backlight_update_status(bd); printk("aty: Backlight initialized (%s)\n", name); From patchwork Wed Jul 31 12:33:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Zimmermann X-Patchwork-Id: 13748696 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 01AF8C3DA7F for ; Wed, 31 Jul 2024 12:40:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=09+AU06djEdeORlaZcSG1+NmM1Qzrn5oq/L4+t2dqQA=; b=uXnmX8MEyKQbq4szfpQ75rI287 JbNyQpEgFCxvA1q7GyaU61wriTEhMAHECPb7tdhiZdhXZi3IIlmi58o0iCJrqy/CudL00VL16oTjv Szquo6ehcdWLCBsP8d5hR/9kjX9bw4Wual4wO4txAfMGgmdmlqlFgvwq25WnjdowLg6D7q66qFuQc J6neFyXBL/uuEEhMxEcdmiZimJBAbx2zVJiDmKDAPjvYkJB1XZ/qPQS4yDQ/K/6AmNkqtgjqw80mi 2WiPGpm1tHubbmkkzdPIyVvivx4paCIUYEJxwb4e7VQeiMqu0ErU1vLVh3KT8nDBUQSuFh+SjrymG NeWfEoFA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ8d1-000000017mM-3y2P; Wed, 31 Jul 2024 12:40:27 +0000 Received: from smtp-out1.suse.de ([195.135.223.130]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ8Xt-000000016Aq-2a2V for linux-arm-kernel@lists.infradead.org; Wed, 31 Jul 2024 12:35:29 +0000 Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 7750C21992; Wed, 31 Jul 2024 12:35:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1722429306; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=09+AU06djEdeORlaZcSG1+NmM1Qzrn5oq/L4+t2dqQA=; b=iqgx+wh7LakyZwFT7Fhqy9nKR6DZZGS1LV4nTB7JCxHOyz635L2hyMT8YS1QCKLy48GBwr /puPns8RtoOnvIzuZXCzbf3/PQVInZr72MDR2pUPxcwKmxy/MmzPBxmMLp6PPs6+nQb2pd Xj+J8wacp93Evg1NFkZlFpOdfnHQk8Y= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1722429306; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=09+AU06djEdeORlaZcSG1+NmM1Qzrn5oq/L4+t2dqQA=; b=iivSVA8p6SadjkLF0r1CnUfhAThfwk3rdNASc1zhjrpzChFliC8ar9oZEne+4UThGPaWvC pmgis+4sumFXABBA== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1722429306; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=09+AU06djEdeORlaZcSG1+NmM1Qzrn5oq/L4+t2dqQA=; b=iqgx+wh7LakyZwFT7Fhqy9nKR6DZZGS1LV4nTB7JCxHOyz635L2hyMT8YS1QCKLy48GBwr /puPns8RtoOnvIzuZXCzbf3/PQVInZr72MDR2pUPxcwKmxy/MmzPBxmMLp6PPs6+nQb2pd Xj+J8wacp93Evg1NFkZlFpOdfnHQk8Y= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1722429306; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=09+AU06djEdeORlaZcSG1+NmM1Qzrn5oq/L4+t2dqQA=; b=iivSVA8p6SadjkLF0r1CnUfhAThfwk3rdNASc1zhjrpzChFliC8ar9oZEne+4UThGPaWvC pmgis+4sumFXABBA== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 492DE13297; Wed, 31 Jul 2024 12:35:06 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id wLGMEHovqmYiUQAAD6G6ig (envelope-from ); Wed, 31 Jul 2024 12:35:06 +0000 From: Thomas Zimmermann To: deller@gmx.de Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, Thomas Zimmermann Subject: [PATCH 4/9] fbdev: chipsfb: Use backlight power constants Date: Wed, 31 Jul 2024 14:33:45 +0200 Message-ID: <20240731123502.1145082-5-tzimmermann@suse.de> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240731123502.1145082-1-tzimmermann@suse.de> References: <20240731123502.1145082-1-tzimmermann@suse.de> MIME-Version: 1.0 X-Spamd-Result: default: False [0.40 / 50.00]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_TO(0.00)[gmx.de]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; RCPT_COUNT_FIVE(0.00)[6]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; RCVD_TLS_ALL(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo,suse.de:email]; RCVD_COUNT_TWO(0.00)[2]; FREEMAIL_ENVRCPT(0.00)[gmx.de] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240731_053509_835668_3E62D1B0 X-CRM114-Status: GOOD ( 11.85 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Replace FB_BLANK_ constants with their counterparts from the backlight subsystem. The values are identical, so there's no change in functionality or semantics Signed-off-by: Thomas Zimmermann Cc: Helge Deller --- drivers/video/fbdev/chipsfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/chipsfb.c b/drivers/video/fbdev/chipsfb.c index b16a905588fe..33caf0b99a45 100644 --- a/drivers/video/fbdev/chipsfb.c +++ b/drivers/video/fbdev/chipsfb.c @@ -399,7 +399,7 @@ static int chipsfb_pci_init(struct pci_dev *dp, const struct pci_device_id *ent) /* turn on the backlight */ mutex_lock(&pmac_backlight_mutex); if (pmac_backlight) { - pmac_backlight->props.power = FB_BLANK_UNBLANK; + pmac_backlight->props.power = BACKLIGHT_POWER_ON; backlight_update_status(pmac_backlight); } mutex_unlock(&pmac_backlight_mutex); From patchwork Wed Jul 31 12:33:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Zimmermann X-Patchwork-Id: 13748693 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 71FEFC3DA64 for ; Wed, 31 Jul 2024 12:39:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=xcWL7qAKyVPpswZYBwjAUaZeGQldwCq83FdsQGTGo9k=; b=xahlaefA+gKYZ3Vke1SfC6BPPt p7RmBg/8wyZiXX5Itk4xEqwpOd3KMdF8DJpjcxFoeTYA8kuOaVnUog9b+ERo1YNkXPQ+N/2ZCQ91s 8nXJYhsRdQ9g56Z31RV3x3JNQkV1iPPliQT78Cy5+VxXJ5O2HCrRGO3ALDjjUETz2j1Bn+ablNraO IytfmKGvU5/mu0gUNZCV04O1wGmgBDdQz1jfUVuw77CRYteSGEerQwSoFpX5fFZl+5j67etNTMjJN UN2PlotgbaLXKj/A6TEpGEDTyaTAOlzy8G89XeiJDtv1VG2Bc9LgD84e/I4kDhnEwZxAd4Om6VpLR fX2Mspyg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ8bj-000000017SN-1bW1; Wed, 31 Jul 2024 12:39:07 +0000 Received: from smtp-out1.suse.de ([2a07:de40:b251:101:10:150:64:1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ8Xu-000000016As-02J9 for linux-arm-kernel@lists.infradead.org; Wed, 31 Jul 2024 12:35:31 +0000 Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id B25AC21A09; Wed, 31 Jul 2024 12:35:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1722429306; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xcWL7qAKyVPpswZYBwjAUaZeGQldwCq83FdsQGTGo9k=; b=w9a7OUOEhVumo5wTuUMDPwWroy7VcvXONzx/+LWOqD/Pfhm+8iLK5ksdkQ52XIeEKwl1tO YeTBhvy0+m1jEpl7hxVY6S7FCxmwRXP/UW9O25Cd7USBu6pPNJfXlKyExpus3icwH95cP2 V7fgyiAGjHvay/49ocyJzLHmsxIXoKI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1722429306; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xcWL7qAKyVPpswZYBwjAUaZeGQldwCq83FdsQGTGo9k=; b=93xQwPEHORPDSPp16zjnd+RLAUD8PwKrRcBrdeF+8KzUpIbsDB2ZsPcgVkWotOl+UgOGqm 1Xw4JFk5oxe262Cg== Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=w9a7OUOE; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=93xQwPEH DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1722429306; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xcWL7qAKyVPpswZYBwjAUaZeGQldwCq83FdsQGTGo9k=; b=w9a7OUOEhVumo5wTuUMDPwWroy7VcvXONzx/+LWOqD/Pfhm+8iLK5ksdkQ52XIeEKwl1tO YeTBhvy0+m1jEpl7hxVY6S7FCxmwRXP/UW9O25Cd7USBu6pPNJfXlKyExpus3icwH95cP2 V7fgyiAGjHvay/49ocyJzLHmsxIXoKI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1722429306; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xcWL7qAKyVPpswZYBwjAUaZeGQldwCq83FdsQGTGo9k=; b=93xQwPEHORPDSPp16zjnd+RLAUD8PwKrRcBrdeF+8KzUpIbsDB2ZsPcgVkWotOl+UgOGqm 1Xw4JFk5oxe262Cg== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 7E39F13AD8; Wed, 31 Jul 2024 12:35:06 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id cEqCHXovqmYiUQAAD6G6ig (envelope-from ); Wed, 31 Jul 2024 12:35:06 +0000 From: Thomas Zimmermann To: deller@gmx.de Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, Thomas Zimmermann , Antonino Daplas Subject: [PATCH 5/9] fbdev: nvidiafb: Use backlight power constants Date: Wed, 31 Jul 2024 14:33:46 +0200 Message-ID: <20240731123502.1145082-6-tzimmermann@suse.de> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240731123502.1145082-1-tzimmermann@suse.de> References: <20240731123502.1145082-1-tzimmermann@suse.de> MIME-Version: 1.0 X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Rspamd-Action: no action X-Rspamd-Queue-Id: B25AC21A09 X-Spamd-Result: default: False [-4.81 / 50.00]; BAYES_HAM(-3.00)[100.00%]; DWL_DNSWL_MED(-2.00)[suse.de:dkim]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_CONTAINS_FROM(1.00)[]; R_MISSING_CHARSET(0.50)[]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; RCVD_TLS_ALL(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:email,suse.de:dkim,imap1.dmz-prg2.suse.org:rdns,imap1.dmz-prg2.suse.org:helo]; FREEMAIL_CC(0.00)[vger.kernel.org,lists.freedesktop.org,lists.infradead.org,suse.de,gmail.com]; MIME_TRACE(0.00)[0:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; RCPT_COUNT_SEVEN(0.00)[7]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; RCVD_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[gmx.de]; FREEMAIL_ENVRCPT(0.00)[gmail.com,gmx.de]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; DKIM_TRACE(0.00)[suse.de:+] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240731_053510_402684_61B4071F X-CRM114-Status: GOOD ( 10.73 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Replace FB_BLANK_ constants with their counterparts from the backlight subsystem. The values are identical, so there's no change in functionality or semantics. Signed-off-by: Thomas Zimmermann Cc: Antonino Daplas Cc: Helge Deller --- drivers/video/fbdev/nvidia/nv_backlight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/nvidia/nv_backlight.c b/drivers/video/fbdev/nvidia/nv_backlight.c index 160da9c50a52..7edd47ab16e9 100644 --- a/drivers/video/fbdev/nvidia/nv_backlight.c +++ b/drivers/video/fbdev/nvidia/nv_backlight.c @@ -112,7 +112,7 @@ void nvidia_bl_init(struct nvidia_par *par) 0x534 * FB_BACKLIGHT_MAX / MAX_LEVEL); bd->props.brightness = bd->props.max_brightness; - bd->props.power = FB_BLANK_UNBLANK; + bd->props.power = BACKLIGHT_POWER_ON; backlight_update_status(bd); printk("nvidia: Backlight initialized (%s)\n", name); From patchwork Wed Jul 31 12:33:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Zimmermann X-Patchwork-Id: 13748691 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F244CC3DA64 for ; Wed, 31 Jul 2024 12:38:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=zc9nJhKTizoTXPGtuht3nktFTrniChSObo107zV4LkQ=; b=UpuuwsBHuqxCl9gmJmAoIVbJOY FJ0mMc93KPgXBGY4qC0yeZlMASbEwv0M0c5R14gf0zUYWLoU1ffA1G/IAcQe1SrYJ4qTXEzHMCA4Z UAlzQVmgvSpQuQP/r0zQmFgdxRLQvfBGkIrR4PnEIOldiOBvhu0KchXXOgIuir4TgsMIBrAyizUof AVmICjEOEfjt0tNmUZPPU23174hKojO0N5YZ/PXOhqVaOg9sf9jwb5vSL2dLB1kTZrrGFArbVNO28 5okK68Fv7PofILSjfIUZHWZJeDi5tEKMPiNFpOP7+RUzCUpiEBDAqJVHsfejEkxYFavLL3paHDC5w ZKoW92Xw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ8aq-000000017Bn-3KqI; Wed, 31 Jul 2024 12:38:13 +0000 Received: from smtp-out1.suse.de ([195.135.223.130]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ8Xt-000000016Au-3YQm for linux-arm-kernel@lists.infradead.org; Wed, 31 Jul 2024 12:35:30 +0000 Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id E80C321B1B; Wed, 31 Jul 2024 12:35:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1722429306; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zc9nJhKTizoTXPGtuht3nktFTrniChSObo107zV4LkQ=; b=mmN4Yh/k3NSPWWEbqlFMIyg+7BnTGoxAdz4jqZw9enwE7r4x6pGc++JR0UFBEgRF1IO3O9 S0fIObqnvwcjm/b9+wCR8atyP+h8i0aWn9ZnhgVC3p2pI0UMpfGV43thPeYACp50hQAcIz IqCWphlmpzZ/nmXfdK4lg/gWumAnoVY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1722429306; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zc9nJhKTizoTXPGtuht3nktFTrniChSObo107zV4LkQ=; b=vsUeDmCEEbBPvCADe7g6l/NEUTocw/rQjoScBB5+o1pUx0+uLNjvgCquyDkNjB+PXYubpZ ZZ/L2Iaur6PENiAg== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1722429306; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zc9nJhKTizoTXPGtuht3nktFTrniChSObo107zV4LkQ=; b=mmN4Yh/k3NSPWWEbqlFMIyg+7BnTGoxAdz4jqZw9enwE7r4x6pGc++JR0UFBEgRF1IO3O9 S0fIObqnvwcjm/b9+wCR8atyP+h8i0aWn9ZnhgVC3p2pI0UMpfGV43thPeYACp50hQAcIz IqCWphlmpzZ/nmXfdK4lg/gWumAnoVY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1722429306; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zc9nJhKTizoTXPGtuht3nktFTrniChSObo107zV4LkQ=; b=vsUeDmCEEbBPvCADe7g6l/NEUTocw/rQjoScBB5+o1pUx0+uLNjvgCquyDkNjB+PXYubpZ ZZ/L2Iaur6PENiAg== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id B845D13297; Wed, 31 Jul 2024 12:35:06 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id 0DqrK3ovqmYiUQAAD6G6ig (envelope-from ); Wed, 31 Jul 2024 12:35:06 +0000 From: Thomas Zimmermann To: deller@gmx.de Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, Thomas Zimmermann Subject: [PATCH 6/9] fbdev: omapfb: Use backlight power constants Date: Wed, 31 Jul 2024 14:33:47 +0200 Message-ID: <20240731123502.1145082-7-tzimmermann@suse.de> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240731123502.1145082-1-tzimmermann@suse.de> References: <20240731123502.1145082-1-tzimmermann@suse.de> MIME-Version: 1.0 X-Spamd-Result: default: False [0.40 / 50.00]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_TO(0.00)[gmx.de]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; RCPT_COUNT_FIVE(0.00)[6]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; RCVD_TLS_ALL(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:email,imap1.dmz-prg2.suse.org:helo]; RCVD_COUNT_TWO(0.00)[2]; FREEMAIL_ENVRCPT(0.00)[gmx.de] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240731_053510_075934_AF68D86F X-CRM114-Status: GOOD ( 12.41 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Replace FB_BLANK_ constants with their counterparts from the backlight subsystem. The values are identical, so there's no change in functionality or semantics. Signed-off-by: Thomas Zimmermann Cc: Helge Deller --- drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c | 4 ++-- .../video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c b/drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c index 274bdf7b3b45..35ed1b2db993 100644 --- a/drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c +++ b/drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c @@ -1215,7 +1215,7 @@ static int dsicm_probe(struct platform_device *pdev) ddata->bldev = bldev; - bldev->props.power = FB_BLANK_UNBLANK; + bldev->props.power = BACKLIGHT_POWER_ON; bldev->props.brightness = 255; dsicm_bl_update_status(bldev); @@ -1253,7 +1253,7 @@ static void dsicm_remove(struct platform_device *pdev) bldev = ddata->bldev; if (bldev != NULL) { - bldev->props.power = FB_BLANK_POWERDOWN; + bldev->props.power = BACKLIGHT_POWER_OFF; dsicm_bl_update_status(bldev); backlight_device_unregister(bldev); } diff --git a/drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c b/drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c index 71d2e015960c..e0747a90dc50 100644 --- a/drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c +++ b/drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c @@ -753,7 +753,7 @@ static int acx565akm_probe(struct spi_device *spi) } memset(&props, 0, sizeof(props)); - props.power = FB_BLANK_UNBLANK; + props.power = BACKLIGHT_POWER_ON; props.type = BACKLIGHT_RAW; bldev = backlight_device_register("acx565akm", &ddata->spi->dev, From patchwork Wed Jul 31 12:33:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Zimmermann X-Patchwork-Id: 13748683 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B403EC3DA64 for ; Wed, 31 Jul 2024 12:36:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=CjiHfI0semFY8a+KjXeEwfXVWlYMbTDLKBUPSK/6Iak=; b=1ZIRcXEXE+4Rc7TZurPIijTmPI GDEx982XfIVj7JeCCndmQYfmSVI4xbO4lTbmJs4ERXHZWsV1nmEIqldHfmk0p0QXugnMDu5a3DMzK Foaj370V+5sxXYkA1eKe9QNOlvtckEgJ8BSFiu+SqkSh8XcQ/K0o2yYfEgLN6iLIlWrtiMBaUsnhe rtJNwp+9ZUM5YKRTTQUPAo/WoqDvUOUZT2MoRVJDuCRqoDiZOVy9szmNzhKDiBFxozqh+jF1w7JhV g/uSr+jPb1s7Np+aO00e6pZlXNQZdP2DYlgzGNIBNih4j0AqDmbE/7UUJSlZ7PqnBkNJQ6nCA58qO +JkHZR0Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ8ZM-000000016j5-1ejI; Wed, 31 Jul 2024 12:36:40 +0000 Received: from smtp-out2.suse.de ([2a07:de40:b251:101:10:150:64:2]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ8Xt-000000016Az-0sfu for linux-arm-kernel@lists.infradead.org; Wed, 31 Jul 2024 12:35:20 +0000 Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 2FBFC1F84B; Wed, 31 Jul 2024 12:35:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1722429307; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CjiHfI0semFY8a+KjXeEwfXVWlYMbTDLKBUPSK/6Iak=; b=fYYrAlWqubWr1XMeTH57eUHyLGbQAaUOXQ++v/Cegk9KYl5z2frphhPK6BMxVUfHdjqem3 UWoc2c5uoR9D2gaCOoUOFw4uV0kXy2WNmCsklqwQZNtb7qsBHNgI0wP5mwhqfGnVhCl5IE Q+lg6bP9klxazQwiDpJpkvw5MSwEKOY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1722429307; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CjiHfI0semFY8a+KjXeEwfXVWlYMbTDLKBUPSK/6Iak=; b=+5j8ocxoAcMi13+xFXYMkGMaJAPczNuNHKb3oiopDNLR1GWbxindH8b49Z/OmXM27DvhrT w5XBC0jNVwzhIzAA== Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1722429307; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CjiHfI0semFY8a+KjXeEwfXVWlYMbTDLKBUPSK/6Iak=; b=fYYrAlWqubWr1XMeTH57eUHyLGbQAaUOXQ++v/Cegk9KYl5z2frphhPK6BMxVUfHdjqem3 UWoc2c5uoR9D2gaCOoUOFw4uV0kXy2WNmCsklqwQZNtb7qsBHNgI0wP5mwhqfGnVhCl5IE Q+lg6bP9klxazQwiDpJpkvw5MSwEKOY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1722429307; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CjiHfI0semFY8a+KjXeEwfXVWlYMbTDLKBUPSK/6Iak=; b=+5j8ocxoAcMi13+xFXYMkGMaJAPczNuNHKb3oiopDNLR1GWbxindH8b49Z/OmXM27DvhrT w5XBC0jNVwzhIzAA== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id EEFE213AD8; Wed, 31 Jul 2024 12:35:06 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id UGobOXovqmYiUQAAD6G6ig (envelope-from ); Wed, 31 Jul 2024 12:35:06 +0000 From: Thomas Zimmermann To: deller@gmx.de Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, Thomas Zimmermann , Benjamin Herrenschmidt Subject: [PATCH 7/9] fbdev: radeonfb: Use backlight power constants Date: Wed, 31 Jul 2024 14:33:48 +0200 Message-ID: <20240731123502.1145082-8-tzimmermann@suse.de> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240731123502.1145082-1-tzimmermann@suse.de> References: <20240731123502.1145082-1-tzimmermann@suse.de> MIME-Version: 1.0 X-Spamd-Result: default: False [-2.60 / 50.00]; BAYES_HAM(-3.00)[100.00%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_SEVEN(0.00)[7]; FREEMAIL_TO(0.00)[gmx.de]; ARC_NA(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_TLS_ALL(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:email,imap1.dmz-prg2.suse.org:helo]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmx.de] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240731_053509_432341_653454EA X-CRM114-Status: GOOD ( 10.76 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Replace FB_BLANK_ constants with their counterparts from the backlight subsystem. The values are identical, so there's no change in functionality or semantics. Signed-off-by: Thomas Zimmermann Cc: Benjamin Herrenschmidt Cc: Helge Deller --- drivers/video/fbdev/aty/radeon_backlight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/aty/radeon_backlight.c b/drivers/video/fbdev/aty/radeon_backlight.c index 23a38c3f3977..9e41d2a18649 100644 --- a/drivers/video/fbdev/aty/radeon_backlight.c +++ b/drivers/video/fbdev/aty/radeon_backlight.c @@ -179,7 +179,7 @@ void radeonfb_bl_init(struct radeonfb_info *rinfo) 217 * FB_BACKLIGHT_MAX / MAX_RADEON_LEVEL); bd->props.brightness = bd->props.max_brightness; - bd->props.power = FB_BLANK_UNBLANK; + bd->props.power = BACKLIGHT_POWER_ON; backlight_update_status(bd); printk("radeonfb: Backlight initialized (%s)\n", name); From patchwork Wed Jul 31 12:33:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Zimmermann X-Patchwork-Id: 13748692 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 93D0EC3DA64 for ; Wed, 31 Jul 2024 12:38:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=w9/nWl/KNut5v7r+JInN6Zxmgngat7AGU3elpa5TuVQ=; b=bIyuEj3A+bAYYs41zV07apukMp Oho+F3UPSg6DiERs/FasLCU10v2aIJGSljwgxVn/ylVZR+sLALChsjDJB1dJuI2ma1Riunx96Xg7U awfTkV82jWfwWEYulCKAdfEtcrxwG5xtj+kjn7Ln7tyLduawNXekU0FeEyzJxmuUJxeE/U34oLbur K4eG88qhsAAl4zRlCtmQbBLnV4w3RmdanwJObb/vXbU97PCpCtLqctF6KRig5HV6ipaRHc2+itivV 9ZVC4rhzXMpxPv661OSBBHEbSjPNOC3wTBz7g/cS/cjWZWKeUfNXm9b/CJ9PM5L4ue5AvOMPD1Qg9 yoojVVnw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ8bH-000000017Ji-2uNx; Wed, 31 Jul 2024 12:38:39 +0000 Received: from smtp-out1.suse.de ([2a07:de40:b251:101:10:150:64:1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ8Xu-000000016Ay-1x97 for linux-arm-kernel@lists.infradead.org; Wed, 31 Jul 2024 12:35:30 +0000 Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 693A821B39; Wed, 31 Jul 2024 12:35:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1722429307; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=w9/nWl/KNut5v7r+JInN6Zxmgngat7AGU3elpa5TuVQ=; b=O8uKgjGdCOCCpxp1jbHG3gRuA5pcRoXUDrEN0PP98KYYQ4hW4bv1czs/OBThcVVPZtvNUN NiLu8alxPS0AQw4FX1tNk7ecZ2AJVJem4wOEF2zA9pOF/IrPi64KXPneW4XFvGDQFAD2xT MO7eAWUxOdVLlc9GL/88UseRlsze5eU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1722429307; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=w9/nWl/KNut5v7r+JInN6Zxmgngat7AGU3elpa5TuVQ=; b=Hz3slqkuxZ/xrcj+44JVay/E6i0g+h8UsK33ZC2l/OdlEesTU8oYJG4vKHq0ntA7t/2ift KZaNF6j7ELc5V3Bg== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1722429307; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=w9/nWl/KNut5v7r+JInN6Zxmgngat7AGU3elpa5TuVQ=; b=O8uKgjGdCOCCpxp1jbHG3gRuA5pcRoXUDrEN0PP98KYYQ4hW4bv1czs/OBThcVVPZtvNUN NiLu8alxPS0AQw4FX1tNk7ecZ2AJVJem4wOEF2zA9pOF/IrPi64KXPneW4XFvGDQFAD2xT MO7eAWUxOdVLlc9GL/88UseRlsze5eU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1722429307; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=w9/nWl/KNut5v7r+JInN6Zxmgngat7AGU3elpa5TuVQ=; b=Hz3slqkuxZ/xrcj+44JVay/E6i0g+h8UsK33ZC2l/OdlEesTU8oYJG4vKHq0ntA7t/2ift KZaNF6j7ELc5V3Bg== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 3535013297; Wed, 31 Jul 2024 12:35:07 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id UC+nC3svqmYiUQAAD6G6ig (envelope-from ); Wed, 31 Jul 2024 12:35:07 +0000 From: Thomas Zimmermann To: deller@gmx.de Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, Thomas Zimmermann , Antonino Daplas Subject: [PATCH 8/9] fbdev: rivafb: Use backlight power constants Date: Wed, 31 Jul 2024 14:33:49 +0200 Message-ID: <20240731123502.1145082-9-tzimmermann@suse.de> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240731123502.1145082-1-tzimmermann@suse.de> References: <20240731123502.1145082-1-tzimmermann@suse.de> MIME-Version: 1.0 X-Spamd-Result: default: False [-2.60 / 50.00]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_CONTAINS_FROM(1.00)[]; R_MISSING_CHARSET(0.50)[]; MIME_GOOD(-0.10)[text/plain]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:email,imap1.dmz-prg2.suse.org:helo]; RCVD_TLS_ALL(0.00)[]; FREEMAIL_CC(0.00)[vger.kernel.org,lists.freedesktop.org,lists.infradead.org,suse.de,gmail.com]; FREEMAIL_TO(0.00)[gmx.de]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCPT_COUNT_SEVEN(0.00)[7]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FUZZY_BLOCKED(0.00)[rspamd.com]; FREEMAIL_ENVRCPT(0.00)[gmail.com,gmx.de] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240731_053510_752592_FBA2F932 X-CRM114-Status: GOOD ( 10.91 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Replace FB_BLANK_ constants with their counterparts from the backlight subsystem. The values are identical, so there's no change in functionality or semantics. Signed-off-by: Thomas Zimmermann Cc: Antonino Daplas Cc: Helge Deller --- drivers/video/fbdev/riva/fbdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/riva/fbdev.c b/drivers/video/fbdev/riva/fbdev.c index 237db738af13..1e377b2ec089 100644 --- a/drivers/video/fbdev/riva/fbdev.c +++ b/drivers/video/fbdev/riva/fbdev.c @@ -347,7 +347,7 @@ static void riva_bl_init(struct riva_par *par) FB_BACKLIGHT_MAX); bd->props.brightness = bd->props.max_brightness; - bd->props.power = FB_BLANK_UNBLANK; + bd->props.power = BACKLIGHT_POWER_ON; backlight_update_status(bd); printk("riva: Backlight initialized (%s)\n", name); From patchwork Wed Jul 31 12:33:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Zimmermann X-Patchwork-Id: 13748697 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ABF3BC3DA7F for ; Wed, 31 Jul 2024 12:41:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=jToARh6esMDbtb7iM/FS4jc6A/Wsn42b20irI/JitXc=; b=hVtazsNFwdov02v0AM+oLKENXR +BTeyaxBxLPk8fWoUJh6QOGxW5dA9F8q7d7kD+q6gUY534wHgsE9P81bVI34t7QJx+YWKSFR98UpM YTmchy8Lm0vndjKlaGZAnqLPrPqanKTVz2WdLKli1z7eefK1eoCT0Jf/gEg3nxLNG+TNKWYzRxmrl mIMv/6fGAnDe1sOTc+C9YQey8seDWBNpv1CphzgHwQ+2q94herrvKozsPwMD93IR8nwfXlxs0KA5x h+Gfk8bUbIBZJqHRIvO3ksiMbPibNq35+q6cKeSdkKtY6JXgVKvDmbfiAJesZ0L9hnvijeI2bioVe bhQP+hhg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ8dT-000000017vS-2IGs; Wed, 31 Jul 2024 12:40:55 +0000 Received: from smtp-out1.suse.de ([195.135.223.130]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ8Y7-000000016H9-0vkE for linux-arm-kernel@lists.infradead.org; Wed, 31 Jul 2024 12:35:46 +0000 Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 9D64F21B69; Wed, 31 Jul 2024 12:35:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1722429307; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jToARh6esMDbtb7iM/FS4jc6A/Wsn42b20irI/JitXc=; b=JYFURrmUjpzF6IHQ/BPoo6MBIzsgjtjs7+dgLT+TCrrYLcX6h1oLDF1ckqgennyEELuLhy RVAJyaieZz6H3NHL2GselGGxcbues9pKbvMv6zC6H42en7I7+SOVsqHVLfyzgbWRrSCZgA DDjcVmrTQTAYK3n9buT5uijSzUbAneQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1722429307; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jToARh6esMDbtb7iM/FS4jc6A/Wsn42b20irI/JitXc=; b=orkpKw6UU4+vThLV8dhqxV4cgZ5EyLuFmFf9ftpr9SU+oOeI5VglGobi0YGjwpfRz9Zt0Z T3QnKNyBA2t7D+Cg== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1722429307; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jToARh6esMDbtb7iM/FS4jc6A/Wsn42b20irI/JitXc=; b=JYFURrmUjpzF6IHQ/BPoo6MBIzsgjtjs7+dgLT+TCrrYLcX6h1oLDF1ckqgennyEELuLhy RVAJyaieZz6H3NHL2GselGGxcbues9pKbvMv6zC6H42en7I7+SOVsqHVLfyzgbWRrSCZgA DDjcVmrTQTAYK3n9buT5uijSzUbAneQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1722429307; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jToARh6esMDbtb7iM/FS4jc6A/Wsn42b20irI/JitXc=; b=orkpKw6UU4+vThLV8dhqxV4cgZ5EyLuFmFf9ftpr9SU+oOeI5VglGobi0YGjwpfRz9Zt0Z T3QnKNyBA2t7D+Cg== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 6F4C113AD8; Wed, 31 Jul 2024 12:35:07 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id AP/1GXsvqmYiUQAAD6G6ig (envelope-from ); Wed, 31 Jul 2024 12:35:07 +0000 From: Thomas Zimmermann To: deller@gmx.de Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, Thomas Zimmermann Subject: [PATCH 9/9] fbdev: sh_mobile_lcdc_fb: Use backlight power constants Date: Wed, 31 Jul 2024 14:33:50 +0200 Message-ID: <20240731123502.1145082-10-tzimmermann@suse.de> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240731123502.1145082-1-tzimmermann@suse.de> References: <20240731123502.1145082-1-tzimmermann@suse.de> MIME-Version: 1.0 X-Spamd-Result: default: False [-2.60 / 50.00]; BAYES_HAM(-3.00)[100.00%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_TO(0.00)[gmx.de]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_FIVE(0.00)[6]; RCVD_TLS_ALL(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:email,imap1.dmz-prg2.suse.org:helo]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmx.de] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240731_053523_512425_5B936CF5 X-CRM114-Status: GOOD ( 11.50 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Replace FB_BLANK_ constants with their counterparts from the backlight subsystem. The values are identical, so there's no change in functionality or semantics. Signed-off-by: Thomas Zimmermann Cc: Helge Deller --- drivers/video/fbdev/sh_mobile_lcdcfb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/video/fbdev/sh_mobile_lcdcfb.c b/drivers/video/fbdev/sh_mobile_lcdcfb.c index 73c69e39a68d..fcc1446ae746 100644 --- a/drivers/video/fbdev/sh_mobile_lcdcfb.c +++ b/drivers/video/fbdev/sh_mobile_lcdcfb.c @@ -1049,7 +1049,7 @@ static int sh_mobile_lcdc_start(struct sh_mobile_lcdc_priv *priv) sh_mobile_lcdc_display_on(ch); if (ch->bl) { - ch->bl->props.power = FB_BLANK_UNBLANK; + ch->bl->props.power = BACKLIGHT_POWER_ON; backlight_update_status(ch->bl); } } @@ -1082,7 +1082,7 @@ static void sh_mobile_lcdc_stop(struct sh_mobile_lcdc_priv *priv) } if (ch->bl) { - ch->bl->props.power = FB_BLANK_POWERDOWN; + ch->bl->props.power = BACKLIGHT_POWER_OFF; backlight_update_status(ch->bl); } @@ -2125,7 +2125,7 @@ static int sh_mobile_lcdc_update_bl(struct backlight_device *bdev) struct sh_mobile_lcdc_chan *ch = bl_get_data(bdev); int brightness = bdev->props.brightness; - if (bdev->props.power != FB_BLANK_UNBLANK || + if (bdev->props.power != BACKLIGHT_POWER_ON || bdev->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK)) brightness = 0;