Skip to content

Commit 3b82024

Browse files
committed
OPP: Move dev_pm_opp_icc_bw to internal opp.h
It isn't used by any driver or API, privatize it. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
1 parent ab7a781 commit 3b82024

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

drivers/opp/opp.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,18 @@ struct opp_config_data {
5050
unsigned int flags;
5151
};
5252

53+
/**
54+
* struct dev_pm_opp_icc_bw - Interconnect bandwidth values
55+
* @avg: Average bandwidth corresponding to this OPP (in icc units)
56+
* @peak: Peak bandwidth corresponding to this OPP (in icc units)
57+
*
58+
* This structure stores the bandwidth values for a single interconnect path.
59+
*/
60+
struct dev_pm_opp_icc_bw {
61+
u32 avg;
62+
u32 peak;
63+
};
64+
5365
/*
5466
* Internal data structure organization with the OPP layer library is as
5567
* follows:

include/linux/pm_opp.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,6 @@ struct dev_pm_opp_supply {
4545
unsigned long u_watt;
4646
};
4747

48-
/**
49-
* struct dev_pm_opp_icc_bw - Interconnect bandwidth values
50-
* @avg: Average bandwidth corresponding to this OPP (in icc units)
51-
* @peak: Peak bandwidth corresponding to this OPP (in icc units)
52-
*
53-
* This structure stores the bandwidth values for a single interconnect path.
54-
*/
55-
struct dev_pm_opp_icc_bw {
56-
u32 avg;
57-
u32 peak;
58-
};
59-
6048
typedef int (*config_regulators_t)(struct device *dev,
6149
struct dev_pm_opp *old_opp, struct dev_pm_opp *new_opp,
6250
struct regulator **regulators, unsigned int count);

0 commit comments

Comments
 (0)