Re: [PATCH] Samsung LTV350QV LCD driver

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Richard Purdie <rpurdie@...>
Cc: Haavard Skinnemoen <hskinnemoen@...>, <linux-kernel@...>
Date: Tuesday, May 29, 2007 - 5:38 pm

On Tuesday 29 May 2007, Richard Purdie wrote:

One significant issue was screwed up sequencing causing
tools like 'xconfig' to display things wrong.  Appended
is a patch fixing just that goof.



They seemed fine to me, other than the write_reg() macro
having an embedded 'goto' ... explicitly against the
Documentation/CodingStyle guidelines.  ("Chapter 12",
point 1 = "macros that affect code flow".)

I like seeing more of the SPI drivers go upstream.  ;)

- Dave





======	CUT HERE
Switch the order of LCD_CLASS_DEVICE and BACKLIGHT_CLASS_DEVICE,
so that it's possible to insert LCD devices without borking the
dependency displays of xconfig and other config tools.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
---
 drivers/video/backlight/Kconfig |   26 ++++++++++++++++----------
 1 file changed, 16 insertions(+), 10 deletions(-)

--- g26.orig/drivers/video/backlight/Kconfig	2007-05-29 14:31:41.000000000 -0700
+++ g26/drivers/video/backlight/Kconfig	2007-05-29 14:33:29.000000000 -0700
@@ -8,26 +8,32 @@ menuconfig BACKLIGHT_LCD_SUPPORT
 	  Enable this to be able to choose the drivers for controlling the
 	  backlight and the LCD panel on some platforms, for example on PDAs.
 
-config BACKLIGHT_CLASS_DEVICE
-        tristate "Lowlevel Backlight controls"
+#
+# LCD
+#
+config LCD_CLASS_DEVICE
+        tristate "Lowlevel LCD controls"
 	depends on BACKLIGHT_LCD_SUPPORT
 	default m
 	help
-	  This framework adds support for low-level control of the LCD
-          backlight. This includes support for brightness and power.
+	  This framework adds support for low-level control of LCD.
+	  Some framebuffer devices connect to platform-specific LCD modules
+	  in order to have a platform-specific way to control the flat panel
+	  (contrast and applying power to the LCD (not to the backlight!)).
 
 	  To have support for your specific LCD panel you will have to
 	  select the proper drivers which depend on this option.
 
-config LCD_CLASS_DEVICE
-        tristate "Lowlevel LCD controls"
+#
+# Backlight
+#
+config BACKLIGHT_CLASS_DEVICE
+        tristate "Lowlevel Backlight controls"
 	depends on BACKLIGHT_LCD_SUPPORT
 	default m
 	help
-	  This framework adds support for low-level control of LCD.
-	  Some framebuffer devices connect to platform-specific LCD modules
-	  in order to have a platform-specific way to control the flat panel
-	  (contrast and applying power to the LCD (not to the backlight!)).
+	  This framework adds support for low-level control of the LCD
+          backlight. This includes support for brightness and power.
 
 	  To have support for your specific LCD panel you will have to
 	  select the proper drivers which depend on this option.
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Samsung LTV350QV LCD driver, Haavard Skinnemoen, (Tue May 29, 3:52 pm)
Re: [PATCH] Samsung LTV350QV LCD driver, Richard Purdie, (Tue May 29, 5:01 pm)
Re: [PATCH] Samsung LTV350QV LCD driver, David Brownell, (Tue May 29, 5:38 pm)
Re: [PATCH] Samsung LTV350QV LCD driver, Richard Purdie, (Tue May 29, 6:19 pm)
[PATCH v2] Samsung LTV350QV LCD driver, Haavard Skinnemoen, (Wed May 30, 6:46 am)