Skip to content

Commit 9042fba

Browse files
committed
sysfs_notify() is unimplemented.
1 parent 1168a59 commit 9042fba

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

sys/compat/linsysfs/linsysfs_extern.c

-6
Original file line numberDiff line numberDiff line change
@@ -466,10 +466,4 @@ sysfs_remove_link(struct kobject *kobj, const char *name)
466466
pfs_destroy(pn);
467467
}
468468

469-
void
470-
sysfs_notify(struct kobject *kobj, const char *dir, const char *attr)
471-
{
472-
/* PFS needs a kevent handler or the like */
473-
}
474-
475469
const char power_group_name[] = "power";

sys/compat/linuxkpi/common/include/linux/sysfs.h

-3
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,6 @@ extern int __must_check sysfs_create_link(struct kobject *kobj, struct kobject *
130130
extern void sysfs_remove_link(struct kobject *kobj, const char *name);
131131

132132

133-
void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr);
134-
135-
136133
extern int lkpi_sysfs_create_file(struct kobject *kobj, const struct attribute *attr);
137134
extern void lkpi_sysfs_remove_file(struct kobject *kobj, const struct attribute *attr);
138135

sys/compat/linuxkpi/gplv2/src/linux_backlight.c

+2
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ static void backlight_generate_event(struct backlight_device *bd,
118118
}
119119
envp[1] = NULL;
120120
kobject_uevent_env(&bd->dev.kobj, KOBJ_CHANGE, envp);
121+
#ifndef __FreeBSD__
121122
sysfs_notify(&bd->dev.kobj, NULL, "actual_brightness");
123+
#endif
122124
}
123125

124126
static ssize_t bl_power_show(struct device *dev, struct device_attribute *attr,

0 commit comments

Comments
 (0)