PM / devfreq: Simplify the sysfs name of devfreq-event device
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 31 Jan 2017 07:47:56 +0000 (16:47 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 31 Jan 2017 07:57:05 +0000 (16:57 +0900)
commit775fa8c3aa22df720f433e871f94cfb182f5913d
treee685ff0bf8cc6a2004e559620a0e3312b3bb3813
parent29b6968b05b6a4a858ba3ce767be1025ab59f2ca
PM / devfreq: Simplify the sysfs name of devfreq-event device

This patch just removes '.' character from the sysfs name of devfreq-event
device as following. Usually, the subsystem uses the similiar naming style
such as {framework name}{Number}.
- old : /sys/class/devfreq-event/event.(X)
- new : /sys/class/devfreq-event/event(X)

And this patch initializes the value of 'event_no' with -1
in order to remove the unneeded operation (-1) when calling
the atomic_inc_return(&event_no).

Lastly, this patch adds the ABI document for devfreq-event class.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Documentation/ABI/testing/sysfs-class-devfreq-event [new file with mode: 0644]
drivers/devfreq/devfreq-event.c