Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262339AbUKQShq (ORCPT ); Wed, 17 Nov 2004 13:37:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262484AbUKQShi (ORCPT ); Wed, 17 Nov 2004 13:37:38 -0500 Received: from colino.net ([213.41.131.56]:46575 "EHLO paperstreet.colino.net") by vger.kernel.org with ESMTP id S262339AbUKQSfl (ORCPT ); Wed, 17 Nov 2004 13:35:41 -0500 Date: Wed, 17 Nov 2004 19:34:16 +0100 From: Colin Leroy To: Andrew Morton Cc: linux-kernel@vger.kernel.org Subject: [PATCH] Switch therm_adt746x to new module_param Message-ID: <20041117193416.52a86d03.colin.lkml@colino.net> X-Mailer: Sylpheed-Claws 0.9.12cvs142.2 (GTK+ 2.4.9; powerpc-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1269 Lines: 43 Hi Andrew, this patch replaces MODULE_PARM to module_param for adt746x. Signed-off-by: Colin Leroy --- a/drivers/macintosh/therm_adt746x.c 2004-11-17 19:26:16.908413504 +0100 +++ b/drivers/macintosh/therm_adt746x.c 2004-11-17 19:28:01.193559752 +0100 @@ -23,6 +23,8 @@ #include #include #include +#include +#include #include #include @@ -30,7 +32,6 @@ #include #include #include -#include #undef DEBUG @@ -56,11 +57,11 @@ "Powerbook G4 Alu"); MODULE_LICENSE("GPL"); -MODULE_PARM(limit_adjust,"i"); +module_param(limit_adjust, int, 0); MODULE_PARM_DESC(limit_adjust,"Adjust maximum temperatures (50 cpu, 70 gpu) " "by N degrees."); -MODULE_PARM(fan_speed,"i"); +module_param(fan_speed, int, 64); MODULE_PARM_DESC(fan_speed,"Specify starting fan speed (0-255) " "(default 64)"); - 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/