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)
commit9ee4685c9ac591b71af755657c3f6ce428ebcca4
tree7e3067560c6c747811c47bb123af964fca8b2dde
parent46592892e1a60f9e9de3287719143a148fce93cf
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