mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Daniel Glöckner" <dg@emlix.com>
To: Chris Zankel <chris@zankel.net>
Cc: linux-kernel@vger.kernel.org, "Daniel Glöckner" <dg@emlix.com>
Subject: [patch 1/4] xtensa: move definition of irq numbers to platform header
Date: Thu, 26 Mar 2009 14:33:45 +0100	[thread overview]
Message-ID: <1238074428-24666-1-git-send-email-dg@emlix.com> (raw)

Alsa SoC drivers traditionally provide the platform specific code as
separate modules. Move the list of irq numbers to a header file to
allow it being used in several files.

Signed-off-by: Daniel Glöckner <dg@emlix.com>
---
 arch/xtensa/platforms/s6105/device.c               |    8 +-------
 arch/xtensa/platforms/s6105/include/platform/irq.h |   11 +++++++++++
 2 files changed, 12 insertions(+), 7 deletions(-)
 create mode 100644 arch/xtensa/platforms/s6105/include/platform/irq.h

diff --git a/arch/xtensa/platforms/s6105/device.c b/arch/xtensa/platforms/s6105/device.c
index bb59580..d296201 100644
--- a/arch/xtensa/platforms/s6105/device.c
+++ b/arch/xtensa/platforms/s6105/device.c
@@ -26,13 +26,7 @@
 #include <variant/dmac.h>
 
 #include <platform/gpio.h>
-
-#define GPIO3_INTNUM		3
-#define UART_INTNUM		4
-#define GMAC_INTNUM		5
-#define I2C_INTNUM		6
-#define ISEF_INTNUM		8
-#define SPI_INTNUM		11
+#include <platform/irq.h>
 
 static const signed char gpio3_irq_mappings[] = {
 	S6_INTC_GPIO(3),
diff --git a/arch/xtensa/platforms/s6105/include/platform/irq.h b/arch/xtensa/platforms/s6105/include/platform/irq.h
new file mode 100644
index 0000000..3d5d4d2
--- /dev/null
+++ b/arch/xtensa/platforms/s6105/include/platform/irq.h
@@ -0,0 +1,11 @@
+#ifndef __XTENSA_PLATFORM_S6105_IRQ_H
+#define __XTENSA_PLATFORM_S6105_IRQ_H
+
+#define GPIO3_INTNUM	3
+#define UART_INTNUM	4
+#define GMAC_INTNUM	5
+#define I2C_INTNUM	6
+#define ISEF_INTNUM	8
+#define SPI_INTNUM	11
+
+#endif
-- 
1.6.2.107.ge47ee


             reply	other threads:[~2009-03-26 13:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-26 13:33 Daniel Glöckner [this message]
2009-03-26 13:33 ` [patch 2/4] xtensa: define irq number for I2S on s6105 Daniel Glöckner
2009-03-26 13:33 ` [patch 3/4] xtensa: prepare s6105 platform for I2S Daniel Glöckner
2009-03-26 13:33 ` [patch 4/4] xtensa: enable on-board sound in s6105_defconfig Daniel Glöckner

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=1238074428-24666-1-git-send-email-dg@emlix.com \
    --to=dg@emlix.com \
    --cc=chris@zankel.net \
    --cc=linux-kernel@vger.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

all inboxes | Powered by JetHome®