Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6d960dcc authored by David Collins's avatar David Collins
Browse files

clk: qcom: clk-rcg: update DEFINE_RCG_DFS() macro



Update the DEFINE_RCG_DFS() macro to avoid the potential clock
struct name aliasing.

This modification originally came from:
commit c88b8062898c ("clk: qcom: Add cdiv clocks for gcc, video
and camera cc driver for KONA").

Change-Id: I5a8b694b5b8a8b5169639a3e09b1ab4c1936e010
Signed-off-by: default avatarDavid Collins <collinsd@codeaurora.org>
parent 228b95aa
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0-only */
/* Copyright (c) 2013, 2016-2018, The Linux Foundation. All rights reserved. */
/* Copyright (c) 2013, 2016-2019, The Linux Foundation. All rights reserved. */

#ifndef __QCOM_CLK_RCG_H__
#define __QCOM_CLK_RCG_H__
@@ -179,7 +179,7 @@ struct clk_rcg_dfs_data {
};

#define DEFINE_RCG_DFS(r) \
	{ .rcg = &r##_src, .init = &r##_init }
	{ .rcg = &r, .init = &r##_init }

extern int qcom_cc_register_rcg_dfs(struct regmap *regmap,
				    const struct clk_rcg_dfs_data *rcgs,