mirror of
https://github.com/torvalds/linux.git
synced 2026-07-30 19:21:28 +02:00
Merge "msm_mmrm: Add api support to check if mmrm is supported"
This commit is contained in:
commit
8a00d503f9
|
|
@ -171,6 +171,18 @@ struct mmrm_client_data {
|
|||
};
|
||||
|
||||
#if IS_ENABLED(CONFIG_MSM_MMRM)
|
||||
/**
|
||||
* mmrm_client_check_scaling_supported - check if mmrm client type (clk, bw)
|
||||
* scaling is supported for a client domain (camera, cvp, video, display)
|
||||
* @client_type: Type of mmrm client (clk, bw)
|
||||
* @client_domain: client domain (camera, cvp, display, video)
|
||||
*
|
||||
* Returns true : mmrm scaling is supported for a client type & domain
|
||||
* false: mmrm scaling is not supported for a client type & domain
|
||||
*/
|
||||
bool mmrm_client_check_scaling_supported(enum mmrm_client_type client_type,
|
||||
u32 client_domain);
|
||||
|
||||
/**
|
||||
* mmrm_client_register - register an mmrm client
|
||||
* This call not configure any rate, use set rate to configure desired rate.
|
||||
|
|
@ -236,6 +248,12 @@ int mmrm_client_get_value(struct mmrm_client *client,
|
|||
struct mmrm_client_res_value *val);
|
||||
|
||||
#else
|
||||
static inline bool mmrm_client_check_scaling_supported(
|
||||
enum mmrm_client_type client_type, u32 client_domain)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
static inline struct mmrm_client *mmrm_client_register(
|
||||
struct mmrm_client_desc *desc)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user