Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68001
b: refs/heads/master
c: adc5680
h: refs/heads/master
i:
  67999: 4ec373f
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Oct 12, 2007
1 parent 1bf6690 commit da26a63
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e4bc16621d82ee1fd3685dcbf889a7c49891847b
refs/heads/master: adc56808f32e15fa0c0fcd5ecb4b30989076ef2b
10 changes: 5 additions & 5 deletions trunk/drivers/base/class.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ static struct sysfs_ops class_sysfs_ops = {
.store = class_attr_store,
};

static struct kobj_type ktype_class = {
static struct kobj_type class_ktype = {
.sysfs_ops = &class_sysfs_ops,
.release = class_release,
};

/* Hotplug events for classes go to the class_obj subsys */
static decl_subsys(class, &ktype_class, NULL);
static decl_subsys(class, &class_ktype, NULL);


int class_create_file(struct class * cls, const struct class_attribute * attr)
Expand Down Expand Up @@ -323,7 +323,7 @@ static void class_dev_release(struct kobject * kobj)
}
}

static struct kobj_type ktype_class_device = {
static struct kobj_type class_device_ktype = {
.sysfs_ops = &class_dev_sysfs_ops,
.release = class_dev_release,
};
Expand All @@ -332,7 +332,7 @@ static int class_uevent_filter(struct kset *kset, struct kobject *kobj)
{
struct kobj_type *ktype = get_ktype(kobj);

if (ktype == &ktype_class_device) {
if (ktype == &class_device_ktype) {
struct class_device *class_dev = to_class_dev(kobj);
if (class_dev->class)
return 1;
Expand Down Expand Up @@ -452,7 +452,7 @@ static struct kset_uevent_ops class_uevent_ops = {
.uevent = class_uevent,
};

static decl_subsys(class_obj, &ktype_class_device, &class_uevent_ops);
static decl_subsys(class_obj, &class_device_ktype, &class_uevent_ops);


static int class_device_add_attrs(struct class_device * cd)
Expand Down

0 comments on commit da26a63

Please sign in to comment.