hwmon: (max6650) Fix multi-line comments
Cc: Hans J. Koch <hjk@hansjkoch.de> Acked-by: Hans J. Koch <hjk@hansjkoch.de> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
c531eb3f22
commit
703af96040
@ -286,8 +286,10 @@ static ssize_t get_pwm(struct device *dev, struct device_attribute *devattr,
|
|||||||
int pwm;
|
int pwm;
|
||||||
struct max6650_data *data = max6650_update_device(dev);
|
struct max6650_data *data = max6650_update_device(dev);
|
||||||
|
|
||||||
/* Useful range for dac is 0-180 for 12V fans and 0-76 for 5V fans.
|
/*
|
||||||
Lower DAC values mean higher speeds. */
|
* Useful range for dac is 0-180 for 12V fans and 0-76 for 5V fans.
|
||||||
|
* Lower DAC values mean higher speeds.
|
||||||
|
*/
|
||||||
if (data->config & MAX6650_CFG_V12)
|
if (data->config & MAX6650_CFG_V12)
|
||||||
pwm = 255 - (255 * (int)data->dac)/180;
|
pwm = 255 - (255 * (int)data->dac)/180;
|
||||||
else
|
else
|
||||||
@ -657,7 +659,8 @@ static int max6650_init_client(struct i2c_client *client)
|
|||||||
dev_info(&client->dev, "Prescaler is set to %d.\n",
|
dev_info(&client->dev, "Prescaler is set to %d.\n",
|
||||||
1 << (config & MAX6650_CFG_PRESCALER_MASK));
|
1 << (config & MAX6650_CFG_PRESCALER_MASK));
|
||||||
|
|
||||||
/* If mode is set to "full off", we change it to "open loop" and
|
/*
|
||||||
|
* If mode is set to "full off", we change it to "open loop" and
|
||||||
* set DAC to 255, which has the same effect. We do this because
|
* set DAC to 255, which has the same effect. We do this because
|
||||||
* there's no "full off" mode defined in hwmon specifcations.
|
* there's no "full off" mode defined in hwmon specifcations.
|
||||||
*/
|
*/
|
||||||
@ -711,9 +714,11 @@ static struct max6650_data *max6650_update_device(struct device *dev)
|
|||||||
MAX6650_REG_COUNT);
|
MAX6650_REG_COUNT);
|
||||||
data->dac = i2c_smbus_read_byte_data(client, MAX6650_REG_DAC);
|
data->dac = i2c_smbus_read_byte_data(client, MAX6650_REG_DAC);
|
||||||
|
|
||||||
/* Alarms are cleared on read in case the condition that
|
/*
|
||||||
|
* Alarms are cleared on read in case the condition that
|
||||||
* caused the alarm is removed. Keep the value latched here
|
* caused the alarm is removed. Keep the value latched here
|
||||||
* for providing the register through different alarm files. */
|
* for providing the register through different alarm files.
|
||||||
|
*/
|
||||||
data->alarm |= i2c_smbus_read_byte_data(client,
|
data->alarm |= i2c_smbus_read_byte_data(client,
|
||||||
MAX6650_REG_ALARM);
|
MAX6650_REG_ALARM);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user