You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
460 B
25 lines
460 B
#ifndef __ASM_MACH_CLKDEV_H
|
|
#define __ASM_MACH_CLKDEV_H
|
|
|
|
#include <linux/module.h>
|
|
#include <asm/hardware/icst525.h>
|
|
|
|
struct clk {
|
|
unsigned long rate;
|
|
struct module *owner;
|
|
const struct icst525_params *params;
|
|
void *data;
|
|
void (*setvco)(struct clk *, struct icst525_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
|
|
|