All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <20191022083630.28175-4-brgl@bgdev.pl>

diff --git a/a/1.txt b/N1/1.txt
index 1ba1b9d..21a8e75 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -51,9 +51,9 @@ index 3955b513f2f8..52f17c9ca1c3 100644
  		return gbl->def_value ? FB_BLANK_UNBLANK : FB_BLANK_POWERDOWN;
  
  	/* if the enable GPIO is disabled, do not enable the backlight */
--	if (gpiod_get_value_cansleep(gbl->gpiod) = 0)
-+	if (gpiod_get_direction(gbl->gpiod) = 0 &&
-+	    gpiod_get_value_cansleep(gbl->gpiod) = 0)
+-	if (gpiod_get_value_cansleep(gbl->gpiod) == 0)
++	if (gpiod_get_direction(gbl->gpiod) == 0 &&
++	    gpiod_get_value_cansleep(gbl->gpiod) == 0)
  		return FB_BLANK_POWERDOWN;
  
  	return FB_BLANK_UNBLANK;
@@ -65,7 +65,7 @@ index 3955b513f2f8..52f17c9ca1c3 100644
 +	int ret, init_brightness;
  
  	gbl = devm_kzalloc(&pdev->dev, sizeof(*gbl), GFP_KERNEL);
- 	if (gbl = NULL)
+ 	if (gbl == NULL)
 @@ -151,7 +159,12 @@ static int gpio_backlight_probe(struct platform_device *pdev)
  	bl->props.power = gpio_backlight_initial_power_state(gbl);
  	bl->props.brightness = 1;
diff --git a/a/content_digest b/N1/content_digest
index 4aba710..d8582ab 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,7 +1,7 @@
  "ref\020191022083630.28175-1-brgl@bgdev.pl\0"
  "From\0Bartosz Golaszewski <brgl@bgdev.pl>\0"
  "Subject\0[PATCH v7 3/9] backlight: gpio: explicitly set the direction of the GPIO\0"
- "Date\0Tue, 22 Oct 2019 08:36:24 +0000\0"
+ "Date\0Tue, 22 Oct 2019 10:36:24 +0200\0"
  "To\0Yoshinori Sato <ysato@users.sourceforge.jp>"
   Rich Felker <dalias@libc.org>
   Lee Jones <lee.jones@linaro.org>
@@ -71,9 +71,9 @@
  " \t\treturn gbl->def_value ? FB_BLANK_UNBLANK : FB_BLANK_POWERDOWN;\n"
  " \n"
  " \t/* if the enable GPIO is disabled, do not enable the backlight */\n"
- "-\tif (gpiod_get_value_cansleep(gbl->gpiod) = 0)\n"
- "+\tif (gpiod_get_direction(gbl->gpiod) = 0 &&\n"
- "+\t    gpiod_get_value_cansleep(gbl->gpiod) = 0)\n"
+ "-\tif (gpiod_get_value_cansleep(gbl->gpiod) == 0)\n"
+ "+\tif (gpiod_get_direction(gbl->gpiod) == 0 &&\n"
+ "+\t    gpiod_get_value_cansleep(gbl->gpiod) == 0)\n"
  " \t\treturn FB_BLANK_POWERDOWN;\n"
  " \n"
  " \treturn FB_BLANK_UNBLANK;\n"
@@ -85,7 +85,7 @@
  "+\tint ret, init_brightness;\n"
  " \n"
  " \tgbl = devm_kzalloc(&pdev->dev, sizeof(*gbl), GFP_KERNEL);\n"
- " \tif (gbl = NULL)\n"
+ " \tif (gbl == NULL)\n"
  "@@ -151,7 +159,12 @@ static int gpio_backlight_probe(struct platform_device *pdev)\n"
  " \tbl->props.power = gpio_backlight_initial_power_state(gbl);\n"
  " \tbl->props.brightness = 1;\n"
@@ -103,4 +103,4 @@
  "-- \n"
  2.23.0
 
-c8ff7ab553aabe2ac21fc8fba7f3436e8c25420c29eb37013e54d9492967a57a
+fb65589ad37051be5e0ed668c1a30f0a852804a18b7e332fef491fb3865c09b6

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.