PM / devfreq: Define the constant governor name
Prior to that, the devfreq device uses the governor name when adding the itself. In order to prevent the mistake used the wrong governor name, this patch defines the governor name as a constant and then uses them instead of using the string directly. Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com> Cc: Kukjin Kim <kgene@kernel.org> Cc: Krzysztof Kozlowski <krzk@kernel.org> Cc: linux-samsung-soc@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org
This commit is contained in:

committed by
MyungJoo Ham

parent
ccc4c3bcbb
commit
aa7c352f98
@@ -39,7 +39,7 @@ static int devfreq_powersave_handler(struct devfreq *devfreq,
|
||||
}
|
||||
|
||||
static struct devfreq_governor devfreq_powersave = {
|
||||
.name = "powersave",
|
||||
.name = DEVFREQ_GOV_POWERSAVE,
|
||||
.get_target_freq = devfreq_powersave_func,
|
||||
.event_handler = devfreq_powersave_handler,
|
||||
};
|
||||
|
Reference in New Issue
Block a user