From: "andrzej zaborowski" <balrog@zabor.org>
To: Linux-OMAP <linux-omap-open-source@linux.omap.com>
Subject: [PATCH] fix PWL macro names
Date: Thu, 29 Jun 2006 21:10:35 +0200 [thread overview]
Message-ID: <fb249edb0606291210v45cd5bb5odf668ebbc98c3813@mail.gmail.com> (raw)
[-- 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 --]
next reply other threads:[~2006-06-29 19:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-29 19:10 andrzej zaborowski [this message]
2006-07-03 15:59 ` [PATCH] fix PWL macro names Jonathan McDowell
2006-07-04 2:20 ` andrzej zaborowski
2006-08-04 10:37 ` Tony Lindgren
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=fb249edb0606291210v45cd5bb5odf668ebbc98c3813@mail.gmail.com \
--to=balrog@zabor.org \
--cc=balrogg@gmail.com \
--cc=linux-omap-open-source@linux.omap.com \
/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