mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 07:36:36 +07:00
7a12f838e4
This patch corrects the SPDX License Identifier style in header files related to Clock Drivers for Spreadtrum SoCs. For C header files Documentation/process/license-rules.rst mandates C-like comments (opposed to C source files where C++ style should be used) Changes made by using a script provided by Joe Perches here: https://lkml.org/lkml/2019/2/7/46 Suggested-by: Joe Perches <joe@perches.com> Signed-off-by: Nishad Kamdar <nishadkamdar@gmail.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
39 lines
913 B
C
39 lines
913 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
//
|
|
// Spreadtrum clock infrastructure
|
|
//
|
|
// Copyright (C) 2017 Spreadtrum, Inc.
|
|
// Author: Chunyan Zhang <chunyan.zhang@spreadtrum.com>
|
|
|
|
#ifndef _SPRD_CLK_COMMON_H_
|
|
#define _SPRD_CLK_COMMON_H_
|
|
|
|
#include <linux/clk-provider.h>
|
|
#include <linux/of_platform.h>
|
|
#include <linux/regmap.h>
|
|
|
|
struct device_node;
|
|
|
|
struct sprd_clk_common {
|
|
struct regmap *regmap;
|
|
u32 reg;
|
|
struct clk_hw hw;
|
|
};
|
|
|
|
struct sprd_clk_desc {
|
|
struct sprd_clk_common **clk_clks;
|
|
unsigned long num_clk_clks;
|
|
struct clk_hw_onecell_data *hw_clks;
|
|
};
|
|
|
|
static inline struct sprd_clk_common *
|
|
hw_to_sprd_clk_common(const struct clk_hw *hw)
|
|
{
|
|
return container_of(hw, struct sprd_clk_common, hw);
|
|
}
|
|
int sprd_clk_regmap_init(struct platform_device *pdev,
|
|
const struct sprd_clk_desc *desc);
|
|
int sprd_clk_probe(struct device *dev, struct clk_hw_onecell_data *clkhw);
|
|
|
|
#endif /* _SPRD_CLK_COMMON_H_ */
|