hwmon: (emc2103) Fix multi-line comments
Cc: Steve Glendinning <steve.glendinning@smsc.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
		
							parent
							
								
									fbb6670d94
								
							
						
					
					
						commit
						bf0f3a0430
					
				| @ -1,21 +1,21 @@ | |||||||
| /*
 | /*
 | ||||||
|     emc2103.c - Support for SMSC EMC2103 |  * emc2103.c - Support for SMSC EMC2103 | ||||||
|     Copyright (c) 2010 SMSC |  * Copyright (c) 2010 SMSC | ||||||
| 
 |  * | ||||||
|     This program is free software; you can redistribute it and/or modify |  * This program is free software; you can redistribute it and/or modify | ||||||
|     it under the terms of the GNU General Public License as published by |  * it under the terms of the GNU General Public License as published by | ||||||
|     the Free Software Foundation; either version 2 of the License, or |  * the Free Software Foundation; either version 2 of the License, or | ||||||
|     (at your option) any later version. |  * (at your option) any later version. | ||||||
| 
 |  * | ||||||
|     This program is distributed in the hope that it will be useful, |  * This program is distributed in the hope that it will be useful, | ||||||
|     but WITHOUT ANY WARRANTY; without even the implied warranty of |  * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||||
|     GNU General Public License for more details. |  * GNU General Public License for more details. | ||||||
| 
 |  * | ||||||
|     You should have received a copy of the GNU General Public License |  * You should have received a copy of the GNU General Public License | ||||||
|     along with this program; if not, write to the Free Software |  * along with this program; if not, write to the Free Software | ||||||
|     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
| */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <linux/module.h> | #include <linux/module.h> | ||||||
| #include <linux/init.h> | #include <linux/init.h> | ||||||
| @ -48,12 +48,14 @@ static const u8 REG_TEMP_MAX[4] = { 0x34, 0x30, 0x31, 0x32 }; | |||||||
| /* equation 4 from datasheet: rpm = (3932160 * multipler) / count */ | /* equation 4 from datasheet: rpm = (3932160 * multipler) / count */ | ||||||
| #define FAN_RPM_FACTOR		3932160 | #define FAN_RPM_FACTOR		3932160 | ||||||
| 
 | 
 | ||||||
| /* 2103-2 and 2103-4's 3rd temperature sensor can be connected to two diodes
 | /*
 | ||||||
|  |  * 2103-2 and 2103-4's 3rd temperature sensor can be connected to two diodes | ||||||
|  * in anti-parallel mode, and in this configuration both can be read |  * in anti-parallel mode, and in this configuration both can be read | ||||||
|  * independently (so we have 4 temperature inputs).  The device can't |  * independently (so we have 4 temperature inputs).  The device can't | ||||||
|  * detect if it's connected in this mode, so we have to manually enable |  * detect if it's connected in this mode, so we have to manually enable | ||||||
|  * it.  Default is to leave the device in the state it's already in (-1). |  * it.  Default is to leave the device in the state it's already in (-1). | ||||||
|  * This parameter allows APD mode to be optionally forced on or off */ |  * This parameter allows APD mode to be optionally forced on or off | ||||||
|  |  */ | ||||||
| static int apd = -1; | static int apd = -1; | ||||||
| module_param(apd, bint, 0); | module_param(apd, bint, 0); | ||||||
| MODULE_PARM_DESC(init, "Set to zero to disable anti-parallel diode mode"); | MODULE_PARM_DESC(init, "Set to zero to disable anti-parallel diode mode"); | ||||||
| @ -302,10 +304,12 @@ show_fan_div(struct device *dev, struct device_attribute *da, char *buf) | |||||||
| 	return sprintf(buf, "%d\n", fan_div); | 	return sprintf(buf, "%d\n", fan_div); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| /* Note: we also update the fan target here, because its value is
 | /*
 | ||||||
|    determined in part by the fan clock divider.  This follows the principle |  * Note: we also update the fan target here, because its value is | ||||||
|    of least surprise; the user doesn't expect the fan target to change just |  * determined in part by the fan clock divider.  This follows the principle | ||||||
|    because the divider changed. */ |  * of least surprise; the user doesn't expect the fan target to change just | ||||||
|  |  * because the divider changed. | ||||||
|  |  */ | ||||||
| static ssize_t set_fan_div(struct device *dev, struct device_attribute *da, | static ssize_t set_fan_div(struct device *dev, struct device_attribute *da, | ||||||
| 			   const char *buf, size_t count) | 			   const char *buf, size_t count) | ||||||
| { | { | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user