2 * si570.h - Configuration for si570 misc driver.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation (version 2 of the License only).
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
14 #ifndef __LINUX_SI570_H
15 #define __LINUX_SI570_H
17 #include <linux/types.h>
18 #include <linux/device.h>
19 #include <linux/i2c.h>
21 struct si570_platform_data
{
22 u64 factory_fout
; /* Factory default output frequency */
23 unsigned long initial_fout
; /* Requested initial frequency */
26 int get_frequency_si570(struct device
*dev
, unsigned long *freq
);
27 int set_frequency_si570(struct device
*dev
, unsigned long freq
);
28 int reset_si570(struct device
*dev
, int id
);
29 struct i2c_client
*get_i2c_client_si570(void);
31 #endif /* __LINUX_SI570_H */