From patchwork Wed Jun 22 21:14:20 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angus Hammond X-Patchwork-Id: 957292 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p68K7Z6W012120 for ; Fri, 8 Jul 2011 20:07:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754994Ab1GHUHc (ORCPT ); Fri, 8 Jul 2011 16:07:32 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:36122 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754961Ab1GHUHb (ORCPT ); Fri, 8 Jul 2011 16:07:31 -0400 Received: by wyg8 with SMTP id 8so1538383wyg.19 for ; Fri, 08 Jul 2011 13:07:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:from:to:cc:date:subject; bh=MPTVj0cqIOkazM+GdJM9Gp1bsZUrJ3pARPj/qKYqBJ8=; b=punk7WOgrEOAW3BHfpwcu/fgiFe0nKp1b+2KDZj8cCtYDypY6AZyutTiXoOXFycPBW O61YfNvQ/au8xRClbAQIt+BHaPWw0HOpoU3U/Snwy9bWTLBxL6l9NBomm3vDFAc9HPm/ QdX/YmsWJ1oVdgG7lMjTotIINrAs7hbq5KcvI= Received: by 10.216.238.80 with SMTP id z58mr939703weq.106.1310155650081; Fri, 08 Jul 2011 13:07:30 -0700 (PDT) Received: from localhost.localdomain (levelgrove.demon.co.uk [80.177.127.228]) by mx.google.com with ESMTPS id d7sm5548302wek.21.2011.07.08.13.07.27 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 08 Jul 2011 13:07:28 -0700 (PDT) Message-ID: <4e176380.8798d80a.0bbf.fffff767@mx.google.com> From: Angus Hammond To: Linux Kernel Cc: linux-acpi@vger.kernel.org Date: Wed, 22 Jun 2011 22:14:20 +0100 Subject: [PATCH] Fixed coding style in drivers/acpi/ac.c Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 08 Jul 2011 20:07:35 +0000 (UTC) Changed lines causing errors from scrips/checkpatch.pl. Signed-off-by: Angus Hammond --- drivers/acpi/ac.c | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/acpi/ac.c b/drivers/acpi/ac.c index 58c3f74..e510828 100644 --- a/drivers/acpi/ac.c +++ b/drivers/acpi/ac.c @@ -1,5 +1,5 @@ /* - * acpi_ac.c - ACPI AC Adapter Driver ($Revision: 27 $) + * acpi_ac.c - ACPI AC Adapter Driver * * Copyright (C) 2001, 2002 Andy Grover * Copyright (C) 2001, 2002 Paul Diefenbaugh @@ -54,8 +54,8 @@ MODULE_DESCRIPTION("ACPI AC Adapter Driver"); MODULE_LICENSE("GPL"); #ifdef CONFIG_ACPI_PROCFS_POWER -extern struct proc_dir_entry *acpi_lock_ac_dir(void); -extern void *acpi_unlock_ac_dir(struct proc_dir_entry *acpi_ac_dir); +struct proc_dir_entry *acpi_lock_ac_dir(void); +void *acpi_unlock_ac_dir(struct proc_dir_entry *acpi_ac_dir); static int acpi_ac_open_fs(struct inode *inode, struct file *file); #endif @@ -85,7 +85,7 @@ static struct acpi_driver acpi_ac_driver = { struct acpi_ac { struct power_supply charger; - struct acpi_device * device; + struct acpi_device *device; unsigned long long state; }; @@ -102,7 +102,7 @@ static const struct file_operations acpi_ac_fops = { #endif /* -------------------------------------------------------------------------- - AC Adapter Management + AC Adapter Management -------------------------------------------------------------------------- */ static int acpi_ac_get_state(struct acpi_ac *ac) @@ -124,7 +124,7 @@ static int acpi_ac_get_state(struct acpi_ac *ac) } /* -------------------------------------------------------------------------- - sysfs I/F + sysfs I/F -------------------------------------------------------------------------- */ static int get_ac_property(struct power_supply *psy, enum power_supply_property psp, @@ -154,7 +154,7 @@ static enum power_supply_property ac_props[] = { #ifdef CONFIG_ACPI_PROCFS_POWER /* -------------------------------------------------------------------------- - FS Interface (/proc) + FS Interface (/proc) -------------------------------------------------------------------------- */ static struct proc_dir_entry *acpi_ac_dir; @@ -230,7 +230,7 @@ static int acpi_ac_remove_fs(struct acpi_device *device) #endif /* -------------------------------------------------------------------------- - Driver Model + Driver Model -------------------------------------------------------------------------- */ static void acpi_ac_notify(struct acpi_device *device, u32 event) @@ -298,7 +298,7 @@ static int acpi_ac_add(struct acpi_device *device) acpi_device_name(device), acpi_device_bid(device), ac->state ? "on-line" : "off-line"); - end: +end: if (result) { #ifdef CONFIG_ACPI_PROCFS_POWER acpi_ac_remove_fs(device);