mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sergiu Iordache <sergiu@chromium.org>
To: Marco Stornelli <marco.stornelli@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Sergiu Iordache <sergiu@chromium.org>,
	"Ahmed S. Darwish" <darwish.07@gmail.com>,
	Artem Bityutskiy <Artem.Bityutskiy@nokia.com>,
	Kyungmin Park <kyungmin.park@samsung.com>,
	linux-kernel@vger.kernel.org
Subject: [PATCH 2/3] char drivers: ramoops dump_oops platform data
Date: Mon, 27 Jun 2011 18:21:52 -0700	[thread overview]
Message-ID: <1309224113-21818-3-git-send-email-sergiu@chromium.org> (raw)
In-Reply-To: <1309224113-21818-1-git-send-email-sergiu@chromium.org>

The platform driver currently allows setting the mem_size and mem_address.
Since dump_oops is also a module parameter it would be more consistent
if it could be set through platform data as well.

Signed-off-by: Sergiu Iordache <sergiu@chromium.org>
---
 drivers/char/ramoops.c  |    1 +
 include/linux/ramoops.h |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/char/ramoops.c b/drivers/char/ramoops.c
index 0c3cb42..56338a3 100644
--- a/drivers/char/ramoops.c
+++ b/drivers/char/ramoops.c
@@ -109,6 +109,7 @@ static int __init ramoops_probe(struct platform_device *pdev)
 	if (pdata) {
 		mem_size = pdata->mem_size;
 		mem_address = pdata->mem_address;
+		dump_oops = pdata->dump_oops;
 	}
 
 	if (!mem_size) {
diff --git a/include/linux/ramoops.h b/include/linux/ramoops.h
index 0ae68a2..1d05505 100644
--- a/include/linux/ramoops.h
+++ b/include/linux/ramoops.h
@@ -10,6 +10,7 @@
 struct ramoops_platform_data {
 	unsigned long	mem_size;
 	unsigned long	mem_address;
+	unsigned char	dump_oops;
 };
 
 #endif
-- 
1.7.3.1


  parent reply	other threads:[~2011-06-28  1:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-28  1:21 [PATCH 0/3] char drivers: ramoops improvements Sergiu Iordache
2011-06-28  1:21 ` [PATCH 1/3] char drivers: ramoops default platform device for module parameter use Sergiu Iordache
2011-06-28 17:56   ` Daniel Baluta
2011-06-28  1:21 ` Sergiu Iordache [this message]
2011-06-28  6:30   ` [PATCH 2/3] char drivers: ramoops dump_oops platform data Marco Stornelli
2011-06-28  1:21 ` [PATCH 3/3] char drivers: ramoops record_size module parameter Sergiu Iordache
2011-06-28  6:39   ` Marco Stornelli
2011-06-28 16:38     ` Sergiu Iordache
2011-06-28 17:17       ` Marco Stornelli
2011-06-28  6:27 ` [PATCH 0/3] char drivers: ramoops improvements Marco Stornelli

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=1309224113-21818-3-git-send-email-sergiu@chromium.org \
    --to=sergiu@chromium.org \
    --cc=Artem.Bityutskiy@nokia.com \
    --cc=akpm@linux-foundation.org \
    --cc=darwish.07@gmail.com \
    --cc=kyungmin.park@samsung.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marco.stornelli@gmail.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

all inboxes | Powered by JetHome®