Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755848Ab1F1BZz (ORCPT ); Mon, 27 Jun 2011 21:25:55 -0400 Received: from smtp-out.google.com ([74.125.121.67]:41381 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755870Ab1F1BWr (ORCPT ); Mon, 27 Jun 2011 21:22:47 -0400 From: Sergiu Iordache To: Marco Stornelli Cc: Andrew Morton , Sergiu Iordache , "Ahmed S. Darwish" , Artem Bityutskiy , Kyungmin Park , 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 Message-Id: <1309224113-21818-3-git-send-email-sergiu@chromium.org> X-Mailer: git-send-email 1.7.3.1 In-Reply-To: <1309224113-21818-1-git-send-email-sergiu@chromium.org> References: <1309224113-21818-1-git-send-email-sergiu@chromium.org> X-System-Of-Record: true Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1302 Lines: 42 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 --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/