From patchwork Tue Apr 12 03:59:23 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Timothy Courrejou X-Patchwork-Id: 699171 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3C40C5E011389 for ; Tue, 12 Apr 2011 04:00:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756577Ab1DLD7q (ORCPT ); Mon, 11 Apr 2011 23:59:46 -0400 Received: from mail-iy0-f174.google.com ([209.85.210.174]:57141 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756509Ab1DLD7p (ORCPT ); Mon, 11 Apr 2011 23:59:45 -0400 Received: by iyb14 with SMTP id 14so6250006iyb.19 for ; Mon, 11 Apr 2011 20:59:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer; bh=a0eJx1/YD5RYCCXEnLyDGZwQq809+EwceCt4yqoFvAs=; b=Roh8yK4iazrqxoSqY/WkwfCy9Ya5erczNXP20ceH94DQt75JqfC+VgZDekWltawzSf iQsN01JzwuEpSqWjbh5b7FGsj3oj2BvjfCvRKkhiluJNGsJO6MuCvTN/2PhK3uZdUOrK EbWhNwnKHRts+BpiQQrzWLxwgDuPKCIjrEBrY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=jm+/NVi60Qky+Q/hqrfX7CWRv4Qnz5KDyt+lgt+7vcPaR35plKZQiVa7b/SNcdq0Xi wyqiW1oNbuymsnTHCacGpNMnnRbmc4/OoRigB8rYPV/5KcBJej80RAMJIaYK0kw2fhVP X/+NeFYlTZwoKVGpA67FtgBTUCsvFEddM9KXg= Received: by 10.42.200.18 with SMTP id eu18mr1778849icb.495.1302580784632; Mon, 11 Apr 2011 20:59:44 -0700 (PDT) Received: from localhost.localdomain (c-67-181-191-74.hsd1.ca.comcast.net [67.181.191.74]) by mx.google.com with ESMTPS id xc15sm4292716icb.2.2011.04.11.20.59.42 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 11 Apr 2011 20:59:44 -0700 (PDT) From: Timothy Courrejou To: lenb@kernel.org Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Timothy Courrejou Subject: [PATCH 2/2] ACPI: ac: fixed indentation, commenting and line length coding style issues Date: Mon, 11 Apr 2011 20:59:23 -0700 Message-Id: <1302580763-11859-1-git-send-email-timcour@gmail.com> X-Mailer: git-send-email 1.7.4.2 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]); Tue, 12 Apr 2011 04:00:13 +0000 (UTC) Fixed coding style issues. Signed-off-by: Timothy Courrejou --- drivers/acpi/ac.c | 36 ++++++++++++++++++------------------ 1 files changed, 18 insertions(+), 18 deletions(-) diff --git a/drivers/acpi/ac.c b/drivers/acpi/ac.c index 183a035..58c3f74 100644 --- a/drivers/acpi/ac.c +++ b/drivers/acpi/ac.c @@ -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; }; @@ -101,9 +101,10 @@ 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) { acpi_status status = AE_OK; @@ -112,11 +113,9 @@ static int acpi_ac_get_state(struct acpi_ac *ac) if (!ac) return -EINVAL; - status = acpi_evaluate_integer(ac->device->handle, - "_PSR", NULL, &ac->state); + status = acpi_evaluate_integer(ac->device->handle, "_PSR", NULL, &ac->state); if (ACPI_FAILURE(status)) { - ACPI_EXCEPTION((AE_INFO, status, - "Error reading AC Adapter state")); + ACPI_EXCEPTION((AE_INFO, status, "Error reading AC Adapter state")); ac->state = ACPI_AC_STATUS_UNKNOWN; return -ENODEV; } @@ -124,9 +123,9 @@ static int acpi_ac_get_state(struct acpi_ac *ac) return 0; } -/* - * sysfs I/F - */ +/* -------------------------------------------------------------------------- + sysfs I/F + -------------------------------------------------------------------------- */ static int get_ac_property(struct power_supply *psy, enum power_supply_property psp, union power_supply_propval *val) @@ -154,10 +153,10 @@ 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; static int acpi_ac_seq_show(struct seq_file *seq, void *offset) @@ -230,9 +229,10 @@ 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) { struct acpi_ac *ac = acpi_driver_data(device); @@ -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);