Skip to content

Driver core: remove class_attrs from struct class

Greg Kroah-Hartman linux-block linux-gpio linux-mtd linux-scsi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7uwb: use class_groups instead of class_attrsdrivers/uwb/driver.c+6 -50 replies
2/7scsi: ibmvscsi_tgt: remove use of class_attrsdrivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c+0 -51 reply
3/7mtd: use class_groups instead of class_attrsdrivers/mtd/ubi/build.c+9 -71 reply
4/7zram: use class_groups instead of class_attrsdrivers/block/zram/zram_drv.c+15 -111 reply
5/7gpio: use class_groups instead of class_attrsdrivers/gpio/gpiolib-sysfs.c+8 -52 replies
6/7pktcdvd: use class_groups instead of class_attrsdrivers/block/pktcdvd.c+17 -181 reply
7/7driver core: remove class_attrs from struct classdrivers/base/class.c include/linux/device.h+0 -350 replies

Reviews trailers per patch

3 of 7 patches have a Reviewed-by or Acked-by.

PatchRichard WeinbergerLinus WalleijSergey Senozhatsky
1/7
2/7
3/7A-b
4/7R-b
5/7A-b
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/7] Driver core: remove class_attrs from struct class

Some more patches that have long been sitting in a local tree...

The class_attrs field in struct class duplicates the same effort that class_groups implements, so let's finally get rid of the last few users of this field, and delete it, and the duplicated logic in the driver core.

Subsystem maintainers, I'm glad to take this series in my driver core tree, if you just want to ack your respective patches, that's fine with me.

This series has passed 0-day test-builds from what I can tell.

Greg Kroah-Hartman (7):
uwb: use class_groups instead of class_attrs
scsi: ibmvscsi_tgt: remove use of class_attrs
mtd: use class_groups instead of class_attrs
zram: use class_groups instead of class_attrs
gpio: use class_groups instead of class_attrs
pktcdvd: use class_groups instead of class_attrs driver core: remove class_attrs from struct class

 drivers/base/class.c                     | 33 ------------------------------
 drivers/block/pktcdvd.c                  | 35 ++++++++++++++++----------------
 drivers/block/zram/zram_drv.c            | 26 ++++++++++++++----------
 drivers/gpio/gpiolib-sysfs.c             | 13 +++++++-----
 drivers/mtd/ubi/build.c                  | 16 ++++++++-------
 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c |  5 -----
 drivers/uwb/driver.c                     | 11 +++++-----
 include/linux/device.h                   |  2 --
 8 files changed, 55 insertions(+), 86 deletions(-)
Signature · 1 line
2.13.1