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)
committerJunghoon Kim <jhoon20.kim@samsung.com>
Thu, 14 Feb 2019 05:56:39 +0000 (14:56 +0900)
commit590fa49023a74c7a9471cf237cd10eccaab73f8e
treeca9c0af2eb128c2545ec12676ddf421c81d7b573
parent57eb52ca0edd30ff8fdc62d925060d1550ee547b
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