From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Chiang Subject: [PATCH v3 0/6] ACPI: dock: code hygiene Date: Fri, 16 Oct 2009 15:14:54 -0600 Message-ID: <20091016211323.12126.58457.stgit@bob.kio> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Return-path: Received: from g4t0014.houston.hp.com ([15.201.24.17]:28701 "EHLO g4t0014.houston.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751476AbZJPVOu (ORCPT ); Fri, 16 Oct 2009 17:14:50 -0400 Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: lenb@kernel.org Cc: shaohua.li@intel.com, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org This is v3 of a modest attempt to clean up the dock driver. As before, compile tested only, since I don't have any machines that provide _DCK. Thanks. /ac v2 -> v3: - now using an attribute_group, as suggested by Dmitry Torokhov v1 -> v2: - changed how we add platform device data, based on Shaohua Li's review --- Alex Chiang (6): ACPI: dock: convert sysfs attributes to an attribute_group ACPI: dock: combine add|alloc_dock_dependent_device ACPI: dock: remove global 'dock_device_name' ACPI: dock: dock_add - hoist up platform_device_register_simple() ACPI: dock: add struct dock_station * directly to platform device data ACPI: dock: minor whitespace and style cleanups drivers/acpi/dock.c | 265 ++++++++++++++++++--------------------------------- 1 files changed, 92 insertions(+), 173 deletions(-)