thmc50.c (310ec79210d754afe51e2e4a983e846b60179abd) thmc50.c (c3813d6af177fab19e322f3114b1f64fbcf08d71)
1/*
2 thmc50.c - Part of lm_sensors, Linux kernel modules for hardware
3 monitoring
4 Copyright (C) 2007 Krzysztof Helt <krzysztof.h1@wp.pl>
5 Based on 2.4 driver by Frodo Looijaard <frodol@dds.nl> and
6 Philip Edelbrock <phil@netroedge.com>
7
8 This program is free software; you can redistribute it and/or modify

--- 94 unchanged lines hidden (view full) ---

103 .class = I2C_CLASS_HWMON,
104 .driver = {
105 .name = "thmc50",
106 },
107 .probe = thmc50_probe,
108 .remove = thmc50_remove,
109 .id_table = thmc50_id,
110 .detect = thmc50_detect,
1/*
2 thmc50.c - Part of lm_sensors, Linux kernel modules for hardware
3 monitoring
4 Copyright (C) 2007 Krzysztof Helt <krzysztof.h1@wp.pl>
5 Based on 2.4 driver by Frodo Looijaard <frodol@dds.nl> and
6 Philip Edelbrock <phil@netroedge.com>
7
8 This program is free software; you can redistribute it and/or modify

--- 94 unchanged lines hidden (view full) ---

103 .class = I2C_CLASS_HWMON,
104 .driver = {
105 .name = "thmc50",
106 },
107 .probe = thmc50_probe,
108 .remove = thmc50_remove,
109 .id_table = thmc50_id,
110 .detect = thmc50_detect,
111 .address_data = &addr_data,
111 .address_list = normal_i2c,
112};
113
114static ssize_t show_analog_out(struct device *dev,
115 struct device_attribute *attr, char *buf)
116{
117 struct thmc50_data *data = thmc50_update_device(dev);
118 return sprintf(buf, "%d\n", data->analog_out);
119}

--- 363 unchanged lines hidden ---
112};
113
114static ssize_t show_analog_out(struct device *dev,
115 struct device_attribute *attr, char *buf)
116{
117 struct thmc50_data *data = thmc50_update_device(dev);
118 return sprintf(buf, "%d\n", data->analog_out);
119}

--- 363 unchanged lines hidden ---