PM / devfreq: Remove redundant governor_name from struct devfreq
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 20 Oct 2020 06:12:12 +0000 (15:12 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 26 Oct 2020 02:50:51 +0000 (11:50 +0900)
commit96ffcdf239de6f9970178bb7d643e16fd9e68ab9
tree344e9362f8e0e5d3e46c4efba56ebf746a49017b
parent5f1a9066fcb2cc1d41104c74884f6c6cf010124b
PM / devfreq: Remove redundant governor_name from struct devfreq

The devfreq structure instance contains the governor_name and a governor
instance. When need to show the governor name, better to use the name
of devfreq_governor structure. So, governor_name variable in struct devfreq
is a redundant and unneeded variable. Remove the redundant governor_name
of struct devfreq and then use the name of devfreq_governor instance.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/devfreq/devfreq.c
drivers/devfreq/governor.h
include/linux/devfreq.h