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: 13748668 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (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 A2D041A7F8C; Wed, 31 Jul 2024 12:35:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722429312; cv=none; b=OMlssDU0rYr6cHJJvA93bZk1OGVtq0el/85iasZAyCx05hqi5kXTPd5VoPW4KB/F4oH6rviIgtYhFcEZyu0OUvHH5+snExhJKFN3Ctk20B+yeIsAF+qHPVz3tGvDPJ407y7zCTOSnl2zhMgYSCbbe5CnBHGWT5MWjR3CLkpKsbU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722429312; c=relaxed/simple; bh=Lduh3CfOjaFM6djP15BHpRyiYWmOYyvUFZruUJ6Qs4A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GlqHR5B/rtP/z588xrfx59tlm7qJAyWjRP+ABMdhYEbWxhaa3Xf8+1kgtDug57BR8uOhNKQNwYSA/YbHG+9I13MCFGmS0UA7o6QGd1luc3bVGt5mBOIA1nqFYkEdjV/m+ByOfSax2DGMT3Urd1FzlqVxLTpH3CbaTjmQ3Hr6N8s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=EWYetj7c; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=ltkFZ/fT; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=v91YYjAZ; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=7i3U81hE; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="EWYetj7c"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="ltkFZ/fT"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="v91YYjAZ"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="7i3U81hE" 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 Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, Thomas Zimmermann , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea 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> Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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-Spam-Level: X-Spam-Flag: NO X-Spam-Score: -2.60 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: 13748662 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (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 AD1331AE84F; Wed, 31 Jul 2024 12:35:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722429310; cv=none; b=pirYwg/1P1UK9Tn/kcOY+AcPCvKidIGBikGrYODGVoC4BD1epkFJLzPLv0cBA5JVLWSj3iQzui9+DgpwCRye4D92RqYFUAUSHM/tAyti/fru5UO4zqzZEanKIlLvscIDhqroHey5deU7mz7n1kpoQWvG2wrDLFXEvnhoSHlLJzk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722429310; c=relaxed/simple; bh=Sd9mydakWGrE978/BF8a2KNfZLbONUWMCyjgDU4zynA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mgvX1fgGvAa8fWJnIqje5c+2dsFtfnpHIL4yMntoNH+FfEUQmM3ZvC3srMPWOeaJqc1kvW9X4bYu6ABrr5+w5ErbCLJ0zgI5kI3TvdNxQn2dUuweQiHBc9xAF8vaPQ61uj0REZWlcoSUCyy15NAG8rmsL8vZJBsCnlTliemLOPk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=M09O47Mc; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=z+Csrta4; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=M09O47Mc; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=z+Csrta4; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="M09O47Mc"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="z+Csrta4"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="M09O47Mc"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="z+Csrta4" 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> Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Level: 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-Spam-Flag: NO X-Spam-Score: -1.81 X-Rspamd-Queue-Id: 0F9F31F833 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: 13748663 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (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 D9C9A1AE856; Wed, 31 Jul 2024 12:35:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722429310; cv=none; b=f7K04w6o3Pu69cLLZCcrKl2d+vU7tgj0fpIgfeH7ej5WVrz2fVOvOhf10S3zal1D1Q/zBfaS0l6Fh6ZI2OOsdmGLqpFVzTihz/PyS4fYsugVeh/440NA0CnR/t8Gj4iN+pCucJF17w2ZPOhpdD7l6wV3LgbFjbVi/gLrwKv/CNA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722429310; c=relaxed/simple; bh=9HP/D9D1vCB78t5H0s7qV2irRSxHcVLOFVksg3ogQzM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=r0Of0MX2IoE35iBplblMNlHfPbur3d3ZW+ri6H3PJWb6i+saF4OOVBlFOH1eDo7am6nBRPiUHE923qziBVMg1NecjRtDorGGTsBjjVyMkh7VnDxCM2NAp/PxmDJ5quXzN1lgZrkYnvhboVYosqRLIKYuR468Ntwg3Mz7DZXdwE8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=vxk3HdSO; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=UlQxfpIs; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=vxk3HdSO; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=UlQxfpIs; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="vxk3HdSO"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="UlQxfpIs"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="vxk3HdSO"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="UlQxfpIs" 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> Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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-Spam-Level: X-Spam-Flag: NO X-Spam-Score: -2.60 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: 13748664 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (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 F0A421AE868; Wed, 31 Jul 2024 12:35:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722429310; cv=none; b=rPSEfSY4uoOMXTI2EiyCe2nshQ1rp5Y/2t18WnpbFv9RtURIJLS/dqMQsNLNmW6Ar9rUXmaQPq/zuuWZ4/w8lZ2i1Br8YaAPqRhuviDDAmAVQpJm53EPzA1qytS68Pcvg2udl4pcJtdlhz3nEOeMhSkla7y868LB+pjgLeO5Efs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722429310; c=relaxed/simple; bh=vLRtks5OmAvmsNya6BjTInhEAkECO8pkmIrTvF5GiIg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=D1WvY5ojwTWNkcLaSLuHCrgSnXgQ1GBJ59xGwklYH0ozEBw50Ke5HD/R8Zpz1JgW6LII+f+tSZ97dMgEHRWcS+XCpz9EBqknqTkbaS9rnJq5HsAeILD2RgUEUUpiPpxioHCXPZ74hBrTmQUtCw1zKgiPeG/N4BqXPXBN8XgmYSM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=iqgx+wh7; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=iivSVA8p; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=iqgx+wh7; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=iivSVA8p; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="iqgx+wh7"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="iivSVA8p"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="iqgx+wh7"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="iivSVA8p" 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> Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Level: 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-Spam-Flag: NO X-Spam-Score: 0.40 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: 13748665 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (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 8A7361AE869; Wed, 31 Jul 2024 12:35:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722429311; cv=none; b=gfDcmOC7NOXfUTF+DMEUeQUlL13Z5qSv81ItvI9zL0Cx4HN+AYeCeWoz9pXSyoclmf+lcsqKLvKAiTBW/iDtI8aYIhYLf4reduIBNG4KG+Gla00gRlCLFDDrNGJ8JdB022C9vLEtrtewpokOZ5KEne9U5gAfEcfEmJGg3W6oFos= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722429311; c=relaxed/simple; bh=p05yJxkfqbBZumP/meBZ5LV3fb0xyrwFtHNBj878eqs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ZGYa/GQoCn7xA1h8c5VfR2/yKAYAPNYzaykXDW8VY4JqpL2F0iR3EMof9/NAahS6kIXrXcKUgDJKF3/INyuTCv/gIymOqOmOfF7wnqYs0UQutW1C0i2QV5VccwTNqXvmPYMkynOr1M6EaANm+48bxXOoo3kGAEj4iC6/B1UCHYU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=w9a7OUOE; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=93xQwPEH; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=w9a7OUOE; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=93xQwPEH; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="w9a7OUOE"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="93xQwPEH"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="w9a7OUOE"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="93xQwPEH" 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> Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Rspamd-Action: no action X-Rspamd-Queue-Id: B25AC21A09 X-Spam-Score: -4.81 X-Spam-Level: X-Spam-Flag: NO 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:+] 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: 13748671 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (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 09C0B1AED46; Wed, 31 Jul 2024 12:35:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722429339; cv=none; b=Uzd4b2yqDI1bEUU4qW5jDg5IwcK15pavv9aQeQXBEOkZoBJt8I2rVWuHTAhq6dqQ1/u+seBgbkG8XQZRa0tM/9ul5uOTx9hTP3ycCChUhGyKbO+3IJOOBEr7XaFI1Bd9YUS7etjKiTSmbdXIa5QZ5UcgPxZkKxCfA9UrbhJr5W4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722429339; c=relaxed/simple; bh=ukpxQXSYDkc1ACZBIUdyI4e8sf3Ya2W6ayLHGwFAd4M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=HG1t+WcOFo6MVYl7xA+4rsYlhtKZ9UJHD2/sBEJ3iUYsf8hIr3Nt22nEFcm6fnCWrEcL23a5fau0MJSGnoFeJ6H2sdSbcUG2eZPosG56G8+vu9JnH8e98cYNjMfG6xGxggQUejfVIHQi66b3l51/ThK7lpVO2gWnyeQHcg0juTs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=mmN4Yh/k; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=vsUeDmCE; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=mmN4Yh/k; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=vsUeDmCE; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="mmN4Yh/k"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="vsUeDmCE"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="mmN4Yh/k"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="vsUeDmCE" 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> Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Level: 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-Spam-Flag: NO X-Spam-Score: 0.40 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: 13748667 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (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 052E11AE87A; Wed, 31 Jul 2024 12:35:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722429311; cv=none; b=gQAliu8ROTNRePNGQ31AHuck09OmfBwn5jwD+TnonDkPzivTsl4BhRAKnZX0igb2gmUm+x6OUim9cowreVKm/MZQqfww3ZgASEa4mC8iAmiaUTGVj2UIoVGeHftNl5rt2pQ/huPQHLceRkLVrfSFmpPxaFFQI7Win5PnArB4tdQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722429311; c=relaxed/simple; bh=2WHx77HsEkQ7U3D1P5RhWTFbezs3soCvv+8yj0uqEOo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TtffYEVN6psrXD4Vs7c9TPaQEW80QrWDJjyN8pC+lwlrrKFczulQUJLzwJyQVWWlO5zv/J78GOqqb+O7qy0rp71M7YQZ/gfmLvwhZpHOpumtHXHkIudL6z36G3vQLK2kjo7SWFkXyPhl2Ii49/2F+dHuORVy0WtiiPl5MP60Phw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=fYYrAlWq; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=+5j8ocxo; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=fYYrAlWq; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=+5j8ocxo; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="fYYrAlWq"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="+5j8ocxo"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="fYYrAlWq"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="+5j8ocxo" 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> Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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-Spam-Level: X-Spam-Flag: NO X-Spam-Score: -2.60 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: 13748666 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (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 111CB1AED22; Wed, 31 Jul 2024 12:35:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722429311; cv=none; b=iqsCvleRtVvtHgWN4ghUAbgWRxTfT7P7z/r1TPt2Nbqs7LuLwwCrWhpjUObSJuhNg54NYFrt37tNX/mxSqy4KgsixDihmvhEjgY67viHEO1Lim6y1hTDbAZxhb+6fS1A0lfZCzMNKHNtSYlL2D4uRrOYLzxWL+2m4yDq+/C4CEw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722429311; c=relaxed/simple; bh=s4UhAQ0AVOEUdOuRsU+Ekr2cP1eK7VIpSJy6QtoOHQ8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=l9D9t8aPVR7CD5TMJih+BGt4f5UVskPzP4VtVtE0Ud1kxQa2zkaEpEHCV2JZjH9TH2xnQq4Dl5axFlVD5EGUFrSZvRu+kuUxgCF9f8tjV2bw65EtiDSmny/PF9hTpSVUIjgHVWQpEDdXPwLPuzJInDGUJkBUMAYjuDutgkh89G4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=O8uKgjGd; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=Hz3slqku; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=O8uKgjGd; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=Hz3slqku; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="O8uKgjGd"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="Hz3slqku"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="O8uKgjGd"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="Hz3slqku" 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> Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Level: 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-Spam-Flag: NO X-Spam-Score: -2.60 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: 13748670 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (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 297901B142B; Wed, 31 Jul 2024 12:35:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722429319; cv=none; b=URfeseX21zRKvzwrJX2zmPguAzYwwRMDtWJnBhToe6iPOVg8Tz+94cQBRaRwXonXBJ2496eVeC2UPF6hu0jpUTvQ4cit2VU1elzSjYJbs+OfNBCKi4R/LVgncXU6rP6aKRlQ3Gov+K7Ik5bXkZ9B4Ul7Kua9MZWBK771tRjv4yE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722429319; c=relaxed/simple; bh=OuhFyJ9Kp4udx3o+qAVnZoiUHa744XGblAl8iy9cMUE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MB5VE+Iu6xIPq7uiMaJWdKrqBe59LCiUWWRqXFVdauHeoCgZSX+MZvyPcx+wN+9Y+u8uYnjg3z27uz34Mno8LQ7aszqyp5jmBgkVVJC11VqL/C9b+3afAXREGPdMpBzqV99bmV/PAeHz95tcMwq9iDLjm4W//iTnyi7MpHybwss= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=JYFURrmU; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=orkpKw6U; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=JYFURrmU; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=orkpKw6U; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="JYFURrmU"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="orkpKw6U"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="JYFURrmU"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="orkpKw6U" 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> Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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-Spam-Level: X-Spam-Flag: NO X-Spam-Score: -2.60 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;