linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Zimmermann <tzimmermann@suse.de>
To: lee@kernel.org, daniel.thompson@linaro.org, sam@ravnborg.org,
	jingoohan1@gmail.com, deller@gmx.de, linus.walleij@linaro.org,
	f.suligoi@asem.it, ukleinek@kernel.org
Cc: dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org,
	linux-pwm@vger.kernel.org,
	Thomas Zimmermann <tzimmermann@suse.de>
Subject: [PATCH v2 14/17] backlight: pcf50633-backlight: Use backlight power constants
Date: Mon, 24 Jun 2024 17:20:09 +0200	[thread overview]
Message-ID: <20240624152033.25016-15-tzimmermann@suse.de> (raw)
In-Reply-To: <20240624152033.25016-1-tzimmermann@suse.de>

Replace FB_BLANK_ constants with their counterparts from the
backlight subsystem. The values are identical, so there's no
change in functionality.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
---
 drivers/video/backlight/pcf50633-backlight.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/video/backlight/pcf50633-backlight.c b/drivers/video/backlight/pcf50633-backlight.c
index 540dd3380c81..157be2f366df 100644
--- a/drivers/video/backlight/pcf50633-backlight.c
+++ b/drivers/video/backlight/pcf50633-backlight.c
@@ -10,7 +10,6 @@
 #include <linux/platform_device.h>
 
 #include <linux/backlight.h>
-#include <linux/fb.h>
 
 #include <linux/mfd/pcf50633/core.h>
 #include <linux/mfd/pcf50633/backlight.h>
@@ -53,7 +52,7 @@ static int pcf50633_bl_update_status(struct backlight_device *bl)
 
 
 	if (bl->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK) ||
-		bl->props.power != FB_BLANK_UNBLANK)
+		bl->props.power != BACKLIGHT_POWER_ON)
 		new_brightness = 0;
 	else if (bl->props.brightness < pcf_bl->brightness_limit)
 		new_brightness = bl->props.brightness;
@@ -106,7 +105,7 @@ static int pcf50633_bl_probe(struct platform_device *pdev)
 	memset(&bl_props, 0, sizeof(bl_props));
 	bl_props.type = BACKLIGHT_RAW;
 	bl_props.max_brightness = 0x3f;
-	bl_props.power = FB_BLANK_UNBLANK;
+	bl_props.power = BACKLIGHT_POWER_ON;
 
 	if (pdata) {
 		bl_props.brightness = pdata->default_brightness;
-- 
2.45.2


  parent reply	other threads:[~2024-06-24 15:20 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-24 15:19 [PATCH v2 00/17] backlight: Introduce power-state constants Thomas Zimmermann
2024-06-24 15:19 ` [PATCH v2 01/17] backlight: Add BACKLIGHT_POWER_ constants for power states Thomas Zimmermann
2024-06-24 15:19 ` [PATCH v2 02/17] backlight: aat2870-backlight: Use blacklight power constants Thomas Zimmermann
2024-06-24 15:19 ` [PATCH v2 03/17] backlight: ams369fb06: Use backlight " Thomas Zimmermann
2024-06-24 15:19 ` [PATCH v2 04/17] backlight: corgi-lcd: " Thomas Zimmermann
2024-06-24 15:20 ` [PATCH v2 05/17] backlight: gpio-backlight: " Thomas Zimmermann
2024-06-26 11:52   ` Linus Walleij
2024-06-24 15:20 ` [PATCH v2 06/17] backlight: ipaq-micro-backlight: " Thomas Zimmermann
2024-06-26 11:51   ` Linus Walleij
2024-06-24 15:20 ` [PATCH v2 07/17] backlight: journada_bl: " Thomas Zimmermann
2024-06-24 15:20 ` [PATCH v2 08/17] backlight: kb3886-bl: " Thomas Zimmermann
2024-06-24 15:20 ` [PATCH v2 09/17] backlight: ktd253-backlight: " Thomas Zimmermann
2024-06-24 15:20 ` [PATCH v2 10/17] backlight: led-backlight: " Thomas Zimmermann
2024-06-24 15:20 ` [PATCH v2 11/17] backlight: lm3533-backlight: " Thomas Zimmermann
2024-06-24 15:20 ` [PATCH v2 12/17] backlight: mp3309c: " Thomas Zimmermann
2024-06-24 15:20 ` [PATCH v2 13/17] backlight: pandora-backlight: " Thomas Zimmermann
2024-06-24 15:20 ` Thomas Zimmermann [this message]
2024-06-24 15:20 ` [PATCH v2 15/17] backlight: pwm-backlight: " Thomas Zimmermann
2024-06-24 15:20 ` [PATCH v2 16/17] backlight: rave-sp-backlight: " Thomas Zimmermann
2024-06-24 15:20 ` [PATCH v2 17/17] backlight: sky81452-backlight: " Thomas Zimmermann
2024-07-01 11:07 ` [PATCH v2 00/17] backlight: Introduce power-state constants Daniel Thompson
2024-07-04 15:45 ` Lee Jones

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240624152033.25016-15-tzimmermann@suse.de \
    --to=tzimmermann@suse.de \
    --cc=daniel.thompson@linaro.org \
    --cc=deller@gmx.de \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=f.suligoi@asem.it \
    --cc=jingoohan1@gmail.com \
    --cc=lee@kernel.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-fbdev@vger.kernel.org \
    --cc=linux-pwm@vger.kernel.org \
    --cc=sam@ravnborg.org \
    --cc=ukleinek@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).