public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix PWL macro names
@ 2006-06-29 19:10 andrzej zaborowski
  2006-07-03 15:59 ` Jonathan McDowell
  0 siblings, 1 reply; 4+ messages in thread
From: andrzej zaborowski @ 2006-06-29 19:10 UTC (permalink / raw)
  To: Linux-OMAP

[-- Attachment #1: Type: text/plain, Size: 116 bytes --]

Remove "16XX" from the names of PWL-related defines as they are valid
for other models as well.
---
Regards,
Andzej

[-- Attachment #2: linux-pwl-defines.patch --]
[-- Type: application/octet-stream, Size: 1979 bytes --]

diff -pNaur -X linux-omap-2.6-newbuild/Documentation/dontdiff linux-omap-2.6/drivers/video/omap/lcd_osk.c linux-omap-2.6-newbuild/drivers/video/omap/lcd_osk.c
--- linux-omap-2.6/drivers/video/omap/lcd_osk.c	2006-03-22 18:44:53.000000000 +0100
+++ linux-omap-2.6-newbuild/drivers/video/omap/lcd_osk.c	2006-06-23 03:49:52.000000000 +0200
@@ -44,10 +44,10 @@ static int osk_panel_enable(struct lcd_p
 	omap_cfg_reg(PWL);
 
 	/* Enable PWL unit */
-	omap_writeb(0x01, OMAP16XX_PWL_CLK_ENABLE);
+	omap_writeb(0x01, OMAP_PWL_CLK_ENABLE);
 
 	/* Set PWL level */
-	omap_writeb(0xFF, OMAP16XX_PWL_ENABLE);
+	omap_writeb(0xFF, OMAP_PWL_ENABLE);
 
 	/* configure GPIO2 as output */
 	omap_set_gpio_direction(2, 0);
@@ -61,10 +61,10 @@ static int osk_panel_enable(struct lcd_p
 static void osk_panel_disable(struct lcd_panel *panel)
 {
 	/* Set PWL level to zero */
-	omap_writeb(0x00, OMAP16XX_PWL_ENABLE);
+	omap_writeb(0x00, OMAP_PWL_ENABLE);
 
 	/* Disable PWL unit */
-	omap_writeb(0x00, OMAP16XX_PWL_CLK_ENABLE);
+	omap_writeb(0x00, OMAP_PWL_CLK_ENABLE);
 
 	/* set GPIO2 low */
 	omap_set_gpio_dataout(2, 0);
diff -pNaur -X linux-omap-2.6-newbuild/Documentation/dontdiff linux-omap-2.6/include/asm-arm/arch-omap/omap16xx.h linux-omap-2.6-newbuild/include/asm-arm/arch-omap/omap16xx.h
--- linux-omap-2.6/include/asm-arm/arch-omap/omap16xx.h	2006-03-22 18:45:00.000000000 +0100
+++ linux-omap-2.6-newbuild/include/asm-arm/arch-omap/omap16xx.h	2006-06-23 03:48:16.000000000 +0200
@@ -163,9 +163,9 @@
  * Pulse-Width Light
  * ----------------------------------------------------------------------------
  */
-#define OMAP16XX_PWL_BASE	(0xfffb5800)
-#define OMAP16XX_PWL_ENABLE	(OMAP16XX_PWL_BASE + 0x00)
-#define OMAP16XX_PWL_CLK_ENABLE	(OMAP16XX_PWL_BASE + 0x04)
+#define OMAP_PWL_BASE		0xfffb5800
+#define OMAP_PWL_ENABLE		(OMAP_PWL_BASE + 0x00)
+#define OMAP_PWL_CLK_ENABLE	(OMAP_PWL_BASE + 0x04)
 
 /*
  * ---------------------------------------------------------------------------

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-08-04 10:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-29 19:10 [PATCH] fix PWL macro names andrzej zaborowski
2006-07-03 15:59 ` Jonathan McDowell
2006-07-04  2:20   ` andrzej zaborowski
2006-08-04 10:37     ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox