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)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 4 Sep 2017 05:33:31 +0000 (14:33 +0900)
commitc7081a098d11323069fb75d57ddddb9327cb2077
tree05b78bacc56c3534550604173d729c5eedfbddb5
parentda337ca37ff6c5c248d7ab15ee98375ddf517bc8
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