diff mbox series

PM / devfreq: use constant name of userspace governor

Message ID 20200123155912.22160-1-vichy.kuo@gmail.com (mailing list archive)
State Accepted
Delegated to: Chanwoo Choi
Headers show
Series PM / devfreq: use constant name of userspace governor | expand

Commit Message

pierre kuo Jan. 23, 2020, 3:59 p.m. UTC
Based on commit aa7c352f9841 ("PM / devfreq: Define the constant governor
name"), use constant name for userspace governor.

Signed-off-by: pierre Kuo <vichy.kuo@gmail.com>
---
 drivers/devfreq/governor_userspace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Chanwoo Choi Jan. 28, 2020, 11:48 a.m. UTC | #1
On 1/24/20 12:59 AM, pierre Kuo wrote:
> Based on commit aa7c352f9841 ("PM / devfreq: Define the constant governor
> name"), use constant name for userspace governor.
> 
> Signed-off-by: pierre Kuo <vichy.kuo@gmail.com>
> ---
>  drivers/devfreq/governor_userspace.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/devfreq/governor_userspace.c b/drivers/devfreq/governor_userspace.c
> index af94942fcf95..0fd6c4851071 100644
> --- a/drivers/devfreq/governor_userspace.c
> +++ b/drivers/devfreq/governor_userspace.c
> @@ -131,7 +131,7 @@ static int devfreq_userspace_handler(struct devfreq *devfreq,
>  }
>  
>  static struct devfreq_governor devfreq_userspace = {
> -	.name = "userspace",
> +	.name = DEVFREQ_GOV_USERSPACE,
>  	.get_target_freq = devfreq_userspace_func,
>  	.event_handler = devfreq_userspace_handler,
>  };
> 

Applied it. Thanks.
diff mbox series

Patch

diff --git a/drivers/devfreq/governor_userspace.c b/drivers/devfreq/governor_userspace.c
index af94942fcf95..0fd6c4851071 100644
--- a/drivers/devfreq/governor_userspace.c
+++ b/drivers/devfreq/governor_userspace.c
@@ -131,7 +131,7 @@  static int devfreq_userspace_handler(struct devfreq *devfreq,
 }
 
 static struct devfreq_governor devfreq_userspace = {
-	.name = "userspace",
+	.name = DEVFREQ_GOV_USERSPACE,
 	.get_target_freq = devfreq_userspace_func,
 	.event_handler = devfreq_userspace_handler,
 };