diff options
author | Chanwoo Choi <cw00.choi@samsung.com> | 2020-10-20 15:12:12 +0900 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2020-10-26 11:50:51 +0900 |
commit | 96ffcdf239de6f9970178bb7d643e16fd9e68ab9 (patch) | |
tree | 344e9362f8e0e5d3e46c4efba56ebf746a49017b /drivers/devfreq/governor.h | |
parent | 5f1a9066fcb2cc1d41104c74884f6c6cf010124b (diff) | |
download | linux-stable-96ffcdf239de6f9970178bb7d643e16fd9e68ab9.tar.gz linux-stable-96ffcdf239de6f9970178bb7d643e16fd9e68ab9.tar.bz2 linux-stable-96ffcdf239de6f9970178bb7d643e16fd9e68ab9.zip |
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>
Diffstat (limited to 'drivers/devfreq/governor.h')
-rw-r--r-- | drivers/devfreq/governor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/devfreq/governor.h b/drivers/devfreq/governor.h index df413b851bb2..2a52f97b542d 100644 --- a/drivers/devfreq/governor.h +++ b/drivers/devfreq/governor.h @@ -13,6 +13,8 @@ #include <linux/devfreq.h> +#define DEVFREQ_NAME_LEN 16 + #define to_devfreq(DEV) container_of((DEV), struct devfreq, dev) /* Devfreq events */ |