mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-28 16:56:26 +00:00
d315311361
Wrap icc_clk_register to create devm_icc_clk_register to be able to release the resources properly. Acked-by: Georgi Djakov <djakov@kernel.org> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Varadarajan Narayanan <quic_varada@quicinc.com> Link: https://lore.kernel.org/r/20240430064214.2030013-4-quic_varada@quicinc.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
27 lines
648 B
C
27 lines
648 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (c) 2023, Linaro Ltd.
|
|
*/
|
|
|
|
#ifndef __LINUX_INTERCONNECT_CLK_H
|
|
#define __LINUX_INTERCONNECT_CLK_H
|
|
|
|
struct device;
|
|
|
|
struct icc_clk_data {
|
|
struct clk *clk;
|
|
const char *name;
|
|
unsigned int master_id;
|
|
unsigned int slave_id;
|
|
};
|
|
|
|
struct icc_provider *icc_clk_register(struct device *dev,
|
|
unsigned int first_id,
|
|
unsigned int num_clocks,
|
|
const struct icc_clk_data *data);
|
|
int devm_icc_clk_register(struct device *dev, unsigned int first_id,
|
|
unsigned int num_clocks, const struct icc_clk_data *data);
|
|
void icc_clk_unregister(struct icc_provider *provider);
|
|
|
|
#endif
|