PM / sleep: Add support for read-only sysfs attributes
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 2 Jan 2016 02:09:16 +0000 (03:09 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 4 Jan 2016 21:28:59 +0000 (22:28 +0100)
commita1e9ca6967d68209c70e616a224efa89a6b86ca6
tree5de17c38e1f91798105a401d8cbfe84e63f6eeae
parent013c074f8642d8e815ad670601f8e27155a74b57
PM / sleep: Add support for read-only sysfs attributes

Some sysfs attributes in /sys/power/ should really be read-only,
so add support for that, convert those attributes to read-only
and drop the stub .show() routines from them.

Original-by: Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/main.c
kernel/power/power.h