mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
sysfs: Make dir and name args to sysfs_notify() const
Because they can be, and because code like this produces a warning if they're not: struct device_attribute dev_attr; sysfs_notify(&kobj, NULL, dev_attr.attr.name); Signed-off-by: Trent Piepho <[email protected]> CC: Neil Brown <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
d8bf254089
commit
8c0e3998f5
2 changed files with 4 additions and 3 deletions
|
|
@ -469,7 +469,7 @@ void sysfs_notify_dirent(struct sysfs_dirent *sd)
|
|||
}
|
||||
EXPORT_SYMBOL_GPL(sysfs_notify_dirent);
|
||||
|
||||
void sysfs_notify(struct kobject *k, char *dir, char *attr)
|
||||
void sysfs_notify(struct kobject *k, const char *dir, const char *attr)
|
||||
{
|
||||
struct sysfs_dirent *sd = k->sd;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue