]> git.baikalelectronics.ru Git - kernel.git/commit
sysfs: constify sysfs create/remove files harder
authorJani Nikula <jani.nikula@intel.com>
Thu, 4 Oct 2018 14:37:49 +0000 (17:37 +0300)
committerJani Nikula <jani.nikula@intel.com>
Mon, 3 Dec 2018 16:18:19 +0000 (18:18 +0200)
commitff10e8b5b424cc0d6abd7bb2454fcfea2b65d208
tree7e3067560c6c747811c47bb123af964fca8b2dde
parente6c9549b85c149b9d0ed29936f03c05fbea99ae2
sysfs: constify sysfs create/remove files harder

Let the passed in array be const (and thus placed in rodata) instead of
a mutable array of const pointers.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181004143750.30880-1-jani.nikula@intel.com
fs/sysfs/file.c
include/linux/sysfs.h