diff options
author | Guenter Roeck <linux@roeck-us.net> | 2012-01-19 14:02:14 -0500 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2012-03-18 21:27:12 -0400 |
commit | d13d6232de932f11554119bb0c756798f5039ecd (patch) | |
tree | 9934a51e4eada82d2d324a043520e3293fa14f57 /drivers/hwmon/ads7828.c | |
parent | 562fca2f7a6e682455de3f51accfc15f6091cc14 (diff) |
hwmon: (ads7828) Fix multi-line comments
Cc: Steve Hardy <shardy@redhat.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/ads7828.c')
-rw-r--r-- | drivers/hwmon/ads7828.c | 59 |
1 files changed, 30 insertions, 29 deletions
diff --git a/drivers/hwmon/ads7828.c b/drivers/hwmon/ads7828.c index ed60242d6a0..bf3fdf49559 100644 --- a/drivers/hwmon/ads7828.c +++ b/drivers/hwmon/ads7828.c | |||
@@ -1,27 +1,27 @@ | |||
1 | /* | 1 | /* |
2 | ads7828.c - lm_sensors driver for ads7828 12-bit 8-channel ADC | 2 | * ads7828.c - lm_sensors driver for ads7828 12-bit 8-channel ADC |
3 | (C) 2007 EADS Astrium | 3 | * (C) 2007 EADS Astrium |
4 | 4 | * | |
5 | This driver is based on the lm75 and other lm_sensors/hwmon drivers | 5 | * This driver is based on the lm75 and other lm_sensors/hwmon drivers |
6 | 6 | * | |
7 | Written by Steve Hardy <shardy@redhat.com> | 7 | * Written by Steve Hardy <shardy@redhat.com> |
8 | 8 | * | |
9 | Datasheet available at: http://focus.ti.com/lit/ds/symlink/ads7828.pdf | 9 | * Datasheet available at: http://focus.ti.com/lit/ds/symlink/ads7828.pdf |
10 | 10 | * | |
11 | This program is free software; you can redistribute it and/or modify | 11 | * This program is free software; you can redistribute it and/or modify |
12 | it under the terms of the GNU General Public License as published by | 12 | * it under the terms of the GNU General Public License as published by |
13 | the Free Software Foundation; either version 2 of the License, or | 13 | * the Free Software Foundation; either version 2 of the License, or |
14 | (at your option) any later version. | 14 | * (at your option) any later version. |
15 | 15 | * | |
16 | This program is distributed in the hope that it will be useful, | 16 | * This program is distributed in the hope that it will be useful, |
17 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
18 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
19 | GNU General Public License for more details. | 19 | * GNU General Public License for more details. |
20 | 20 | * | |
21 | You should have received a copy of the GNU General Public License | 21 | * You should have received a copy of the GNU General Public License |
22 | along with this program; if not, write to the Free Software | 22 | * along with this program; if not, write to the Free Software |
23 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 23 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
24 | */ | 24 | */ |
25 | 25 | ||
26 | #include <linux/module.h> | 26 | #include <linux/module.h> |
27 | #include <linux/init.h> | 27 | #include <linux/init.h> |
@@ -188,12 +188,13 @@ static int ads7828_detect(struct i2c_client *client, | |||
188 | if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_READ_WORD_DATA)) | 188 | if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_READ_WORD_DATA)) |
189 | return -ENODEV; | 189 | return -ENODEV; |
190 | 190 | ||
191 | /* Now, we do the remaining detection. There is no identification | 191 | /* |
192 | dedicated register so attempt to sanity check using knowledge of | 192 | * Now, we do the remaining detection. There is no identification |
193 | the chip | 193 | * dedicated register so attempt to sanity check using knowledge of |
194 | - Read from the 8 channel addresses | 194 | * the chip |
195 | - Check the top 4 bits of each result are not set (12 data bits) | 195 | * - Read from the 8 channel addresses |
196 | */ | 196 | * - Check the top 4 bits of each result are not set (12 data bits) |
197 | */ | ||
197 | for (ch = 0; ch < ADS7828_NCH; ch++) { | 198 | for (ch = 0; ch < ADS7828_NCH; ch++) { |
198 | u16 in_data; | 199 | u16 in_data; |
199 | u8 cmd = channel_cmd_byte(ch); | 200 | u8 cmd = channel_cmd_byte(ch); |