]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
Driver core: add device_type to struct device
authorKay Sievers <kay.sievers@novell.com>
Sat, 7 Oct 2006 19:54:55 +0000 (21:54 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 7 Feb 2007 18:37:14 +0000 (10:37 -0800)
commitf9f852df2faf76a2667949ddb4947d4b8f99f02f
tree3dfdbae06ef17c83266cc18ed77fcd1c51328c15
parent239378f16aa1ab5c502e42a06359d2de4f88ebb4
Driver core: add device_type to struct device

This allows us to add type specific attributes, uevent vars and
release funtions.

A subsystem can carry different types of devices like the "block"
subsys has disks and partitions. Both types create a different set
of attributes, but belong to the same subsystem.

This corresponds to the low level objects:
  kobject   -> device       (object/device data)
  kobj_type -> device_type  (type of object/device we are embedded in)
  kset      -> class/bus    (list of objects/devices of a subsystem)

Signed-off-by: Kay Sievers <kay.sievers@novell.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/core.c
drivers/usb/input/hid-lgff.c
include/linux/device.h