PM / devfreq: Set min/max_freq when adding the devfreq device
authorChanwoo Choi <cw00.choi@samsung.com>
Mon, 23 Oct 2017 01:32:06 +0000 (10:32 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 26 Oct 2017 08:08:40 +0000 (17:08 +0900)
commitab8f58ad72c4d1abe59216362ddb8bfa428c9071
treecf29661b1dde3436107fcb1b7e40c3b86c37eb89
parentbb176f67090ca54869fc1262c913aa69d2ede070
PM / devfreq: Set min/max_freq when adding the devfreq device

Prior to that, the min/max_freq of the devfreq device are always zero
before the user changes the min/max_freq through sysfs entries.
It might make the confusion for the min/max_freq.

This patch initializes the available min/max_freq by using the OPP
during adding the devfreq device.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
drivers/devfreq/devfreq.c