From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1424865AbWKQBUw (ORCPT ); Thu, 16 Nov 2006 20:20:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1424868AbWKQBTv (ORCPT ); Thu, 16 Nov 2006 20:19:51 -0500 Received: from mailout.stusta.mhn.de ([141.84.69.5]:58120 "HELO mailout.stusta.mhn.de") by vger.kernel.org with SMTP id S1424867AbWKQBTk (ORCPT ); Thu, 16 Nov 2006 20:19:40 -0500 Date: Fri, 17 Nov 2006 02:19:39 +0100 From: Adrian Bunk To: len.brown@intel.com Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [2.6 patch] make drivers/acpi/ec.c:ec_ecdt Message-ID: <20061117011939.GR31879@stusta.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org This patch makes the needlessly global "ec_ecdt" static. Signed-off-by: Adrian Bunk --- linux-2.6.19-rc5-mm2/drivers/acpi/ec.c.old 2006-11-16 23:07:31.000000000 +0100 +++ linux-2.6.19-rc5-mm2/drivers/acpi/ec.c 2006-11-16 23:08:45.000000000 +0100 @@ -84,25 +84,25 @@ .name = ACPI_EC_DRIVER_NAME, .class = ACPI_EC_CLASS, .ids = ACPI_EC_HID, .ops = { .add = acpi_ec_add, .remove = acpi_ec_remove, .start = acpi_ec_start, .stop = acpi_ec_stop, }, }; /* If we find an EC via the ECDT, we need to keep a ptr to its context */ -struct acpi_ec { +static struct acpi_ec { acpi_handle handle; unsigned long uid; unsigned long gpe_bit; unsigned long command_addr; unsigned long data_addr; unsigned long global_lock; struct semaphore sem; unsigned int expect_event; atomic_t leaving_burst; /* 0 : No, 1 : Yes, 2: abort */ wait_queue_head_t wait; } *ec_ecdt;