Commit a8ccaa15 authored by Sultan Alsawaf's avatar Sultan Alsawaf Committed by arnavpuranik
Browse files

devfreq_boost: Remove unused devfreq_get_boost_dev function



This function isn't used anywhere. Remove it.
Signed-off-by: default avatarSultan Alsawaf <sultan@kerneltoast.com>
Signed-off-by: ronax's avatarronaxdevil <pratabidya.007@gmail.com>
Signed-off-by: rohan69's avatarreaPeR1010 <rohan10102002@gmail.com>
parent 3e51b0d7
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2018 Sultan Alsawaf <sultan@kerneltoast.com>.
* Copyright (C) 2018-2019 Sultan Alsawaf <sultan@kerneltoast.com>.
*/
#define pr_fmt(fmt) "devfreq_boost: " fmt
......@@ -9,6 +9,21 @@
#include <linux/fb.h>
#include <linux/input.h>
struct boost_dev {
struct workqueue_struct *wq;
struct devfreq *df;
struct work_struct input_boost;
struct delayed_work input_unboost;
struct work_struct max_boost;
struct delayed_work max_unboost;
unsigned long abs_min_freq;
unsigned long boost_freq;
unsigned long max_boost_expires;
unsigned long max_boost_jiffies;
bool disable;
spinlock_t lock;
};
struct df_boost_drv {
struct boost_dev devices[DEVFREQ_MAX];
struct notifier_block fb_notif;
......@@ -90,16 +105,6 @@ void devfreq_register_boost_device(enum df_device device, struct devfreq *df)
spin_unlock_irqrestore(&b->lock, flags);
}
struct boost_dev *devfreq_get_boost_dev(enum df_device device)
{
struct df_boost_drv *d = df_boost_drv_g;
if (!d)
return NULL;
return d->devices + device;
}
static unsigned long devfreq_abs_min_freq(struct boost_dev *b)
{
struct devfreq *df = b->df;
......
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2018 Sultan Alsawaf <sultan@kerneltoast.com>.
* Copyright (C) 2018-2019 Sultan Alsawaf <sultan@kerneltoast.com>.
*/
#ifndef _DEVFREQ_BOOST_H_
#define _DEVFREQ_BOOST_H_
......@@ -12,26 +12,10 @@ enum df_device {
DEVFREQ_MAX
};
struct boost_dev {
struct workqueue_struct *wq;
struct devfreq *df;
struct work_struct input_boost;
struct delayed_work input_unboost;
struct work_struct max_boost;
struct delayed_work max_unboost;
unsigned long abs_min_freq;
unsigned long boost_freq;
unsigned long max_boost_expires;
unsigned long max_boost_jiffies;
bool disable;
spinlock_t lock;
};
#ifdef CONFIG_DEVFREQ_BOOST
void devfreq_boost_kick(enum df_device device);
void devfreq_boost_kick_max(enum df_device device, unsigned int duration_ms);
void devfreq_register_boost_device(enum df_device device, struct devfreq *df);
struct boost_dev *devfreq_get_boost_dev(enum df_device device);
#else
static inline
void devfreq_boost_kick(enum df_device device)
......@@ -45,11 +29,6 @@ static inline
void devfreq_register_boost_device(enum df_device device, struct devfreq *df)
{
}
static inline
struct boost_dev *devfreq_get_boost_dev(enum df_device device)
{
return NULL;
}
#endif
#endif /* _DEVFREQ_BOOST_H_ */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment