wf_sensor
int (*get_value)(struct wf_sensor *sr, s32 *val);
void (*release)(struct wf_sensor *sr);
extern int wf_register_sensor(struct wf_sensor *sr);
extern void wf_unregister_sensor(struct wf_sensor *sr);
extern int wf_get_sensor(struct wf_sensor *sr);
extern void wf_put_sensor(struct wf_sensor *sr);
static inline int wf_sensor_get(struct wf_sensor *sr, s32 *val)
struct wf_sensor;
static void wf_ad7417_sensor_release(struct wf_sensor *sr)
struct wf_sensor sensors[5];
static int wf_ad7417_temp_get(struct wf_sensor *sr, s32 *value)
static int wf_ad7417_adc_get(struct wf_sensor *sr, s32 *value)
struct wf_sensor *sr = container_of(kref, struct wf_sensor, ref);
struct wf_sensor *sens = container_of(attr, struct wf_sensor, attr);
int wf_register_sensor(struct wf_sensor *new_sr)
struct wf_sensor *sr;
void wf_unregister_sensor(struct wf_sensor *sr)
int wf_get_sensor(struct wf_sensor *sr)
void wf_put_sensor(struct wf_sensor *sr)
struct wf_sensor *sr;
struct wf_sensor sens;
static int wf_lm75_get(struct wf_sensor *sr, s32 *value)
static void wf_lm75_release(struct wf_sensor *sr)
struct wf_sensor sens;
static int wf_lm87_get(struct wf_sensor *sr, s32 *value)
static void wf_lm87_release(struct wf_sensor *sr)
struct wf_sensor sens;
static int wf_max6690_get(struct wf_sensor *sr, s32 *value)
static void wf_max6690_release(struct wf_sensor *sr)
struct wf_sensor *sr;
static struct wf_sensor *sens_cpu_temp[NR_CORES];
static struct wf_sensor *sens_cpu_power[NR_CORES];
static struct wf_sensor *hd_temp;
static struct wf_sensor *slots_power;
static struct wf_sensor *u4_temp;
static void pm112_new_sensor(struct wf_sensor *sr)
static struct wf_sensor *sensor_cpu_power;
static struct wf_sensor *sensor_cpu_temp;
static struct wf_sensor *sensor_cpu_voltage;
static struct wf_sensor *sensor_cpu_current;
static struct wf_sensor *sensor_gpu_temp;
static struct wf_sensor *sensor_north_bridge_temp;
static struct wf_sensor *sensor_hard_drive_temp;
static struct wf_sensor *sensor_optical_drive_temp;
static struct wf_sensor *sensor_incoming_air_temp; /* unused ! */
struct wf_sensor **sensor; /* use sensor_id instead ? */
struct wf_sensor *sensor;
static struct wf_sensor* pm121_register_sensor(struct wf_sensor *sensor,
struct wf_sensor **var)
static void pm121_new_sensor(struct wf_sensor *sr)
((struct wf_sensor *)data)->name);
static struct wf_sensor *sens_cpu_temp[NR_CHIPS];
static struct wf_sensor *sens_cpu_volts[NR_CHIPS];
static struct wf_sensor *sens_cpu_amps[NR_CHIPS];
static struct wf_sensor *backside_temp;
static struct wf_sensor *drives_temp;
static void pm72_new_sensor(struct wf_sensor *sr)
static struct wf_sensor *sensor_cpu_power;
static struct wf_sensor *sensor_cpu_temp;
static struct wf_sensor *sensor_hd_temp;
static void wf_smu_new_sensor(struct wf_sensor *sr)
((struct wf_sensor *)data)->name);
static void wf_smu_new_sensor(struct wf_sensor *sr)
((struct wf_sensor *)data)->name);
static struct wf_sensor *sensor_cpu_power;
static struct wf_sensor *sensor_cpu_temp;
static struct wf_sensor *sensor_hd_temp;
static struct wf_sensor *sensor_slots_power;
static struct wf_sensor *sens_cpu_temp[NR_CHIPS];
static struct wf_sensor *sens_cpu_volts[NR_CHIPS];
static struct wf_sensor *sens_cpu_amps[NR_CHIPS];
static struct wf_sensor *backside_temp;
static struct wf_sensor *slots_temp;
static struct wf_sensor *dimms_temp;
static void rm31_new_sensor(struct wf_sensor *sr)
static int wf_sat_sensor_get(struct wf_sensor *sr, s32 *value)
static void wf_sat_sensor_release(struct wf_sensor *sr)
struct wf_sensor sens;
static int smu_cpuamp_get(struct wf_sensor *sr, s32 *value)
static int smu_cpuvolt_get(struct wf_sensor *sr, s32 *value)
static int smu_slotspow_get(struct wf_sensor *sr, s32 *value)
struct wf_sensor *volts;
struct wf_sensor *amps;
struct wf_sensor sens;
static void smu_cpu_power_release(struct wf_sensor *sr)
static int smu_cpu_power_get(struct wf_sensor *sr, s32 *value)
smu_cpu_power_create(struct wf_sensor *volts, struct wf_sensor *amps)
struct wf_sensor sens;
static void smu_ads_release(struct wf_sensor *sr)
static int smu_cputemp_get(struct wf_sensor *sr, s32 *value)