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

Commit 88c266f0 authored by Deepak Katragadda's avatar Deepak Katragadda
Browse files

clk: qcom: clk-dummy: Move the dummy clock definition to common header



The dummy clock structure, clk_dummy might need to be referenced
in other files. Move its definition to the common qcom header.

Change-Id: Ie7fb707844404919a099aacd691c97ad81dd938f
Signed-off-by: default avatarDeepak Katragadda <dkatraga@codeaurora.org>
parent 3f55a810
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -15,13 +15,8 @@
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/reset-controller.h>

struct clk_dummy {
	struct clk_hw hw;
	struct reset_controller_dev reset;
	unsigned long rrate;
};
#include "common.h"

#define to_clk_dummy(_hw)	container_of(_hw, struct clk_dummy, hw)

+8 −0
Original line number Diff line number Diff line
@@ -13,6 +13,8 @@
#ifndef __QCOM_CLK_COMMON_H__
#define __QCOM_CLK_COMMON_H__

#include <linux/reset-controller.h>

struct platform_device;
struct regmap_config;
struct clk_regmap;
@@ -32,6 +34,12 @@ struct qcom_cc_desc {
	size_t num_gdscs;
};

struct clk_dummy {
	struct clk_hw hw;
	struct reset_controller_dev reset;
	unsigned long rrate;
};

extern const struct freq_tbl *qcom_find_freq(const struct freq_tbl *f,
					     unsigned long rate);
extern int qcom_find_src_index(struct clk_hw *hw, const struct parent_map *map,