Skip to content

ACPI: dock: code hygiene

Alex Chiang linux-acpi lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest6 patches 6 repliesIn review
  2. v36 patches 4 repliesSuperseded
  3. v26 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v16 patches3 repliesSuperseded

Changes in v4 from the cover letter

- defensively code in case sysfs_create_group() fails and sysfs_remove_group() can't handle removing a non-existent group; suggested by Dmitry Torokhov

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6ACPI: dock: convert sysfs attributes to an attribute_groupdrivers/acpi/dock.c+24 -573 replies
2/6ACPI: dock: combine add|alloc_dock_dependent_devicedrivers/acpi/dock.c+19 -360 replies
3/6ACPI: dock: remove global 'dock_device_name'drivers/acpi/dock.c+1 -20 replies
4/6ACPI: dock: dock_add - hoist up platform_device_register_simple()drivers/acpi/dock.c+7 -90 replies
5/6ACPI: dock: add struct dock_station * directly to platform device datadrivers/acpi/dock.c+13 -270 replies
6/6ACPI: dock: minor whitespace and style cleanupsdrivers/acpi/dock.c+45 -580 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchDmitry Torokhov
1/6R-b
2/6
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/6] ACPI: dock: code hygiene

This is v4 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

v3 -> v4:
- defensively code in case sysfs_create_group() fails and sysfs_remove_group() can't handle removing a non-existent group; suggested by Dmitry Torokhov

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 |  266 ++++++++++++++++++---------------------------------
 1 files changed, 93 insertions(+), 173 deletions(-)