mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
39c0cb02db
The structures for the ICST307 and ICST525 VCO devices are identical, so merge them together. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
26 lines
451 B
C
26 lines
451 B
C
#ifndef __ASM_MACH_CLKDEV_H
|
|
#define __ASM_MACH_CLKDEV_H
|
|
|
|
#include <linux/module.h>
|
|
#include <asm/hardware/icst.h>
|
|
|
|
struct clk {
|
|
unsigned long rate;
|
|
struct module *owner;
|
|
const struct icst_params *params;
|
|
void *data;
|
|
void (*setvco)(struct clk *, struct icst_vco vco);
|
|
};
|
|
|
|
static inline int __clk_get(struct clk *clk)
|
|
{
|
|
return try_module_get(clk->owner);
|
|
}
|
|
|
|
static inline void __clk_put(struct clk *clk)
|
|
{
|
|
module_put(clk->owner);
|
|
}
|
|
|
|
#endif
|