mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
hwmon: Fix checkpatch warning 'quoted string split across lines'
Cc: Corentin Labbe <corentin.labbe@geomatys.fr> Cc: Mark M. Hoffman <mhoffman@lightlink.com> Cc: Fenghua Yu <fenghua.yu@intel.com> Cc: Juerg Haefliger <juergh@gmail.com> Cc: Andreas Herrmann <herrmann.der.user@googlemail.com> Cc: Rudolf Marek <r.marek@assembler.cz> Cc: Jim Cromie <jim.cromie@gmail.com> Cc: Roger Lucas <vt8231@hiddenengine.co.uk> Cc: Marc Hulsman <m.hulsman@tudelft.nl> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
@@ -166,6 +166,5 @@ static struct spi_driver ad7314_driver = {
|
||||
module_spi_driver(ad7314_driver);
|
||||
|
||||
MODULE_AUTHOR("Sonic Zhang <sonic.zhang@analog.com>");
|
||||
MODULE_DESCRIPTION("Analog Devices AD7314, ADT7301 and ADT7302 digital"
|
||||
" temperature sensor driver");
|
||||
MODULE_DESCRIPTION("Analog Devices AD7314, ADT7301 and ADT7302 digital temperature sensor driver");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
|
||||
@@ -312,8 +312,7 @@ static int adm1021_detect(struct i2c_client *client,
|
||||
int conv_rate, status, config, man_id, dev_id;
|
||||
|
||||
if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_BYTE_DATA)) {
|
||||
pr_debug("adm1021: detect failed, "
|
||||
"smbus byte data not supported!\n");
|
||||
pr_debug("detect failed, smbus byte data not supported!\n");
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
@@ -324,7 +323,7 @@ static int adm1021_detect(struct i2c_client *client,
|
||||
|
||||
/* Check unused bits */
|
||||
if ((status & 0x03) || (config & 0x3F) || (conv_rate & 0xF8)) {
|
||||
pr_debug("adm1021: detect failed, chip not detected!\n");
|
||||
pr_debug("detect failed, chip not detected!\n");
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
@@ -353,7 +352,7 @@ static int adm1021_detect(struct i2c_client *client,
|
||||
else
|
||||
type_name = "max1617";
|
||||
|
||||
pr_debug("adm1021: Detected chip %s at adapter %d, address 0x%02x.\n",
|
||||
pr_debug("Detected chip %s at adapter %d, address 0x%02x.\n",
|
||||
type_name, i2c_adapter_id(adapter), client->addr);
|
||||
strlcpy(info->type, type_name, I2C_NAME_SIZE);
|
||||
|
||||
@@ -368,10 +367,8 @@ static int adm1021_probe(struct i2c_client *client,
|
||||
|
||||
data = devm_kzalloc(&client->dev, sizeof(struct adm1021_data),
|
||||
GFP_KERNEL);
|
||||
if (!data) {
|
||||
pr_debug("adm1021: detect failed, devm_kzalloc failed!\n");
|
||||
if (!data)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
i2c_set_clientdata(client, data);
|
||||
data->type = id->driver_data;
|
||||
|
||||
+27
-26
@@ -49,14 +49,14 @@ static int gpio_fan[8] = { -1, -1, -1, -1, -1, -1, -1, -1 };
|
||||
module_param_array(gpio_input, int, NULL, 0);
|
||||
MODULE_PARM_DESC(gpio_input, "List of GPIO pins (0-16) to program as inputs");
|
||||
module_param_array(gpio_output, int, NULL, 0);
|
||||
MODULE_PARM_DESC(gpio_output, "List of GPIO pins (0-16) to program as "
|
||||
"outputs");
|
||||
MODULE_PARM_DESC(gpio_output,
|
||||
"List of GPIO pins (0-16) to program as outputs");
|
||||
module_param_array(gpio_inverted, int, NULL, 0);
|
||||
MODULE_PARM_DESC(gpio_inverted, "List of GPIO pins (0-16) to program as "
|
||||
"inverted");
|
||||
MODULE_PARM_DESC(gpio_inverted,
|
||||
"List of GPIO pins (0-16) to program as inverted");
|
||||
module_param_array(gpio_normal, int, NULL, 0);
|
||||
MODULE_PARM_DESC(gpio_normal, "List of GPIO pins (0-16) to program as "
|
||||
"normal/non-inverted");
|
||||
MODULE_PARM_DESC(gpio_normal,
|
||||
"List of GPIO pins (0-16) to program as normal/non-inverted");
|
||||
module_param_array(gpio_fan, int, NULL, 0);
|
||||
MODULE_PARM_DESC(gpio_fan, "List of GPIO pins (0-7) to program as fan tachs");
|
||||
|
||||
@@ -372,31 +372,31 @@ static void adm1026_init_client(struct i2c_client *client)
|
||||
dev_dbg(&client->dev, "ADM1026_REG_CONFIG1 is: 0x%02x\n",
|
||||
data->config1);
|
||||
if ((data->config1 & CFG1_MONITOR) == 0) {
|
||||
dev_dbg(&client->dev, "Monitoring not currently "
|
||||
"enabled.\n");
|
||||
dev_dbg(&client->dev,
|
||||
"Monitoring not currently enabled.\n");
|
||||
}
|
||||
if (data->config1 & CFG1_INT_ENABLE) {
|
||||
dev_dbg(&client->dev, "SMBALERT interrupts are "
|
||||
"enabled.\n");
|
||||
dev_dbg(&client->dev,
|
||||
"SMBALERT interrupts are enabled.\n");
|
||||
}
|
||||
if (data->config1 & CFG1_AIN8_9) {
|
||||
dev_dbg(&client->dev, "in8 and in9 enabled. "
|
||||
"temp3 disabled.\n");
|
||||
dev_dbg(&client->dev,
|
||||
"in8 and in9 enabled. temp3 disabled.\n");
|
||||
} else {
|
||||
dev_dbg(&client->dev, "temp3 enabled. in8 and "
|
||||
"in9 disabled.\n");
|
||||
dev_dbg(&client->dev,
|
||||
"temp3 enabled. in8 and in9 disabled.\n");
|
||||
}
|
||||
if (data->config1 & CFG1_THERM_HOT) {
|
||||
dev_dbg(&client->dev, "Automatic THERM, PWM, "
|
||||
"and temp limits enabled.\n");
|
||||
dev_dbg(&client->dev,
|
||||
"Automatic THERM, PWM, and temp limits enabled.\n");
|
||||
}
|
||||
|
||||
if (data->config3 & CFG3_GPIO16_ENABLE) {
|
||||
dev_dbg(&client->dev, "GPIO16 enabled. THERM "
|
||||
"pin disabled.\n");
|
||||
dev_dbg(&client->dev,
|
||||
"GPIO16 enabled. THERM pin disabled.\n");
|
||||
} else {
|
||||
dev_dbg(&client->dev, "THERM pin enabled. "
|
||||
"GPIO16 disabled.\n");
|
||||
dev_dbg(&client->dev,
|
||||
"THERM pin enabled. GPIO16 disabled.\n");
|
||||
}
|
||||
if (data->config3 & CFG3_VREF_250)
|
||||
dev_dbg(&client->dev, "Vref is 2.50 Volts.\n");
|
||||
@@ -1798,8 +1798,8 @@ static int adm1026_detect(struct i2c_client *client,
|
||||
company = adm1026_read_value(client, ADM1026_REG_COMPANY);
|
||||
verstep = adm1026_read_value(client, ADM1026_REG_VERSTEP);
|
||||
|
||||
dev_dbg(&adapter->dev, "Detecting device at %d,0x%02x with"
|
||||
" COMPANY: 0x%02x and VERSTEP: 0x%02x\n",
|
||||
dev_dbg(&adapter->dev,
|
||||
"Detecting device at %d,0x%02x with COMPANY: 0x%02x and VERSTEP: 0x%02x\n",
|
||||
i2c_adapter_id(client->adapter), client->addr,
|
||||
company, verstep);
|
||||
|
||||
@@ -1811,11 +1811,12 @@ static int adm1026_detect(struct i2c_client *client,
|
||||
/* Analog Devices ADM1026 */
|
||||
} else if (company == ADM1026_COMPANY_ANALOG_DEV
|
||||
&& (verstep & 0xf0) == ADM1026_VERSTEP_GENERIC) {
|
||||
dev_err(&adapter->dev, "Unrecognized stepping "
|
||||
"0x%02x. Defaulting to ADM1026.\n", verstep);
|
||||
dev_err(&adapter->dev,
|
||||
"Unrecognized stepping 0x%02x. Defaulting to ADM1026.\n",
|
||||
verstep);
|
||||
} else if ((verstep & 0xf0) == ADM1026_VERSTEP_GENERIC) {
|
||||
dev_err(&adapter->dev, "Found version/stepping "
|
||||
"0x%02x. Assuming generic ADM1026.\n",
|
||||
dev_err(&adapter->dev,
|
||||
"Found version/stepping 0x%02x. Assuming generic ADM1026.\n",
|
||||
verstep);
|
||||
} else {
|
||||
dev_dbg(&adapter->dev, "Autodetection failed\n");
|
||||
|
||||
@@ -224,8 +224,9 @@ static ssize_t set_fan_div(struct device *dev,
|
||||
break;
|
||||
default:
|
||||
mutex_unlock(&data->update_lock);
|
||||
dev_err(&client->dev, "fan_div value %ld not "
|
||||
"supported. Choose one of 1, 2 or 4!\n", val);
|
||||
dev_err(&client->dev,
|
||||
"fan_div value %ld not supported. Choose one of 1, 2 or 4!\n",
|
||||
val);
|
||||
return -EINVAL;
|
||||
}
|
||||
/* Update the value */
|
||||
@@ -326,8 +327,8 @@ static int adm1029_detect(struct i2c_client *client,
|
||||
* There are no "official" CHIP ID, so actually
|
||||
* we use Major/Minor revision for that
|
||||
*/
|
||||
pr_info("adm1029: Unknown major revision %x, "
|
||||
"please let us know\n", chip_id);
|
||||
pr_info("Unknown major revision %x, please let us know\n",
|
||||
chip_id);
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
|
||||
@@ -351,8 +351,9 @@ static void adm9240_write_fan_div(struct i2c_client *client, int nr,
|
||||
reg &= ~(3 << shift);
|
||||
reg |= (fan_div << shift);
|
||||
i2c_smbus_write_byte_data(client, ADM9240_REG_VID_FAN_DIV, reg);
|
||||
dev_dbg(&client->dev, "fan%d clock divider changed from %u "
|
||||
"to %u\n", nr + 1, 1 << old, 1 << fan_div);
|
||||
dev_dbg(&client->dev,
|
||||
"fan%d clock divider changed from %u to %u\n",
|
||||
nr + 1, 1 << old, 1 << fan_div);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -699,8 +700,8 @@ static void adm9240_init_client(struct i2c_client *client)
|
||||
/* start measurement cycle */
|
||||
i2c_smbus_write_byte_data(client, ADM9240_REG_CONFIG, 1);
|
||||
|
||||
dev_info(&client->dev, "cold start: config was 0x%02x "
|
||||
"mode %u\n", conf, mode);
|
||||
dev_info(&client->dev,
|
||||
"cold start: config was 0x%02x mode %u\n", conf, mode);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -259,15 +259,17 @@ static int adt7411_detect(struct i2c_client *client,
|
||||
|
||||
val = i2c_smbus_read_byte_data(client, ADT7411_REG_MANUFACTURER_ID);
|
||||
if (val < 0 || val != ADT7411_MANUFACTURER_ID) {
|
||||
dev_dbg(&client->dev, "Wrong manufacturer ID. Got %d, "
|
||||
"expected %d\n", val, ADT7411_MANUFACTURER_ID);
|
||||
dev_dbg(&client->dev,
|
||||
"Wrong manufacturer ID. Got %d, expected %d\n",
|
||||
val, ADT7411_MANUFACTURER_ID);
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
val = i2c_smbus_read_byte_data(client, ADT7411_REG_DEVICE_ID);
|
||||
if (val < 0 || val != ADT7411_DEVICE_ID) {
|
||||
dev_dbg(&client->dev, "Wrong device ID. Got %d, "
|
||||
"expected %d\n", val, ADT7411_DEVICE_ID);
|
||||
dev_dbg(&client->dev,
|
||||
"Wrong device ID. Got %d, expected %d\n",
|
||||
val, ADT7411_DEVICE_ID);
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
|
||||
+13
-10
@@ -55,8 +55,8 @@ static const unsigned short normal_i2c[] = { 0x2d, I2C_CLIENT_END };
|
||||
|
||||
static unsigned short force_subclients[4];
|
||||
module_param_array(force_subclients, short, NULL, 0);
|
||||
MODULE_PARM_DESC(force_subclients, "List of subclient addresses: "
|
||||
"{bus, clientaddr, subclientaddr1, subclientaddr2}");
|
||||
MODULE_PARM_DESC(force_subclients,
|
||||
"List of subclient addresses: {bus, clientaddr, subclientaddr1, subclientaddr2}");
|
||||
|
||||
/* Voltage IN registers 0-6 */
|
||||
#define ASB100_REG_IN(nr) (0x20 + (nr))
|
||||
@@ -689,8 +689,8 @@ static int asb100_detect_subclients(struct i2c_client *client)
|
||||
for (i = 2; i <= 3; i++) {
|
||||
if (force_subclients[i] < 0x48 ||
|
||||
force_subclients[i] > 0x4f) {
|
||||
dev_err(&client->dev, "invalid subclient "
|
||||
"address %d; must be 0x48-0x4f\n",
|
||||
dev_err(&client->dev,
|
||||
"invalid subclient address %d; must be 0x48-0x4f\n",
|
||||
force_subclients[i]);
|
||||
err = -ENODEV;
|
||||
goto ERROR_SC_2;
|
||||
@@ -708,24 +708,27 @@ static int asb100_detect_subclients(struct i2c_client *client)
|
||||
}
|
||||
|
||||
if (sc_addr[0] == sc_addr[1]) {
|
||||
dev_err(&client->dev, "duplicate addresses 0x%x "
|
||||
"for subclients\n", sc_addr[0]);
|
||||
dev_err(&client->dev,
|
||||
"duplicate addresses 0x%x for subclients\n",
|
||||
sc_addr[0]);
|
||||
err = -ENODEV;
|
||||
goto ERROR_SC_2;
|
||||
}
|
||||
|
||||
data->lm75[0] = i2c_new_dummy(adapter, sc_addr[0]);
|
||||
if (!data->lm75[0]) {
|
||||
dev_err(&client->dev, "subclient %d registration "
|
||||
"at address 0x%x failed.\n", 1, sc_addr[0]);
|
||||
dev_err(&client->dev,
|
||||
"subclient %d registration at address 0x%x failed.\n",
|
||||
1, sc_addr[0]);
|
||||
err = -ENOMEM;
|
||||
goto ERROR_SC_2;
|
||||
}
|
||||
|
||||
data->lm75[1] = i2c_new_dummy(adapter, sc_addr[1]);
|
||||
if (!data->lm75[1]) {
|
||||
dev_err(&client->dev, "subclient %d registration "
|
||||
"at address 0x%x failed.\n", 2, sc_addr[1]);
|
||||
dev_err(&client->dev,
|
||||
"subclient %d registration at address 0x%x failed.\n",
|
||||
2, sc_addr[1]);
|
||||
err = -ENOMEM;
|
||||
goto ERROR_SC_3;
|
||||
}
|
||||
|
||||
@@ -411,8 +411,7 @@ static int __cpuinit chk_ucode_version(unsigned int cpu)
|
||||
* fixed for stepping D0 (6EC).
|
||||
*/
|
||||
if (c->x86_model == 0xe && c->x86_mask < 0xc && c->microcode < 0x39) {
|
||||
pr_err("Errata AE18 not fixed, update BIOS or "
|
||||
"microcode of the CPU!\n");
|
||||
pr_err("Errata AE18 not fixed, update BIOS or microcode of the CPU!\n");
|
||||
return -ENODEV;
|
||||
}
|
||||
return 0;
|
||||
|
||||
+34
-34
@@ -55,14 +55,16 @@ MODULE_PARM_DESC(force_id, "Override the detected device ID");
|
||||
|
||||
static bool probe_all_addr;
|
||||
module_param(probe_all_addr, bool, 0);
|
||||
MODULE_PARM_DESC(probe_all_addr, "Include probing of non-standard LPC "
|
||||
"addresses");
|
||||
MODULE_PARM_DESC(probe_all_addr,
|
||||
"Include probing of non-standard LPC addresses");
|
||||
|
||||
/* Addresses to scan */
|
||||
static const unsigned short normal_i2c[] = {0x2c, 0x2d, 0x2e, I2C_CLIENT_END};
|
||||
|
||||
enum chips { dme1737, sch5027, sch311x, sch5127 };
|
||||
|
||||
#define DO_REPORT "Please report to the driver maintainer."
|
||||
|
||||
/* ---------------------------------------------------------------------
|
||||
* Registers
|
||||
*
|
||||
@@ -566,9 +568,9 @@ static u8 dme1737_read(const struct dme1737_data *data, u8 reg)
|
||||
val = i2c_smbus_read_byte_data(client, reg);
|
||||
|
||||
if (val < 0) {
|
||||
dev_warn(&client->dev, "Read from register "
|
||||
"0x%02x failed! Please report to the driver "
|
||||
"maintainer.\n", reg);
|
||||
dev_warn(&client->dev,
|
||||
"Read from register 0x%02x failed! %s\n",
|
||||
reg, DO_REPORT);
|
||||
}
|
||||
} else { /* ISA device */
|
||||
outb(reg, data->addr);
|
||||
@@ -587,9 +589,9 @@ static s32 dme1737_write(const struct dme1737_data *data, u8 reg, u8 val)
|
||||
res = i2c_smbus_write_byte_data(client, reg, val);
|
||||
|
||||
if (res < 0) {
|
||||
dev_warn(&client->dev, "Write to register "
|
||||
"0x%02x failed! Please report to the driver "
|
||||
"maintainer.\n", reg);
|
||||
dev_warn(&client->dev,
|
||||
"Write to register 0x%02x failed! %s\n",
|
||||
reg, DO_REPORT);
|
||||
}
|
||||
} else { /* ISA device */
|
||||
outb(reg, data->addr);
|
||||
@@ -1167,8 +1169,8 @@ static ssize_t set_fan(struct device *dev, struct device_attribute *attr,
|
||||
/* Only valid for fan[1-4] */
|
||||
if (!(val == 1 || val == 2 || val == 4)) {
|
||||
count = -EINVAL;
|
||||
dev_warn(dev, "Fan type value %ld not "
|
||||
"supported. Choose one of 1, 2, or 4.\n",
|
||||
dev_warn(dev,
|
||||
"Fan type value %ld not supported. Choose one of 1, 2, or 4.\n",
|
||||
val);
|
||||
goto exit;
|
||||
}
|
||||
@@ -1294,8 +1296,8 @@ static ssize_t set_pwm(struct device *dev, struct device_attribute *attr,
|
||||
/* Only valid for pwm[1-3] */
|
||||
if (val < 0 || val > 2) {
|
||||
count = -EINVAL;
|
||||
dev_warn(dev, "PWM enable %ld not "
|
||||
"supported. Choose one of 0, 1, or 2.\n",
|
||||
dev_warn(dev,
|
||||
"PWM enable %ld not supported. Choose one of 0, 1, or 2.\n",
|
||||
val);
|
||||
goto exit;
|
||||
}
|
||||
@@ -1399,8 +1401,8 @@ static ssize_t set_pwm(struct device *dev, struct device_attribute *attr,
|
||||
if (!(val == 1 || val == 2 || val == 4 ||
|
||||
val == 6 || val == 7)) {
|
||||
count = -EINVAL;
|
||||
dev_warn(dev, "PWM auto channels zone %ld "
|
||||
"not supported. Choose one of 1, 2, 4, 6, "
|
||||
dev_warn(dev,
|
||||
"PWM auto channels zone %ld not supported. Choose one of 1, 2, 4, 6, "
|
||||
"or 7.\n", val);
|
||||
goto exit;
|
||||
}
|
||||
@@ -2178,8 +2180,8 @@ static int dme1737_create_files(struct device *dev)
|
||||
* selected attributes from read-only to read-writeable.
|
||||
*/
|
||||
if (data->config & 0x02) {
|
||||
dev_info(dev, "Device is locked. Some attributes "
|
||||
"will be read-only.\n");
|
||||
dev_info(dev,
|
||||
"Device is locked. Some attributes will be read-only.\n");
|
||||
} else {
|
||||
/* Change permissions of zone sysfs attributes */
|
||||
dme1737_chmod_group(dev, &dme1737_zone_chmod_group,
|
||||
@@ -2247,9 +2249,8 @@ static int dme1737_init_device(struct device *dev)
|
||||
/* Inform if part is not monitoring/started */
|
||||
if (!(data->config & 0x01)) {
|
||||
if (!force_start) {
|
||||
dev_err(dev, "Device is not monitoring. "
|
||||
"Use the force_start load parameter to "
|
||||
"override.\n");
|
||||
dev_err(dev,
|
||||
"Device is not monitoring. Use the force_start load parameter to override.\n");
|
||||
return -EFAULT;
|
||||
}
|
||||
|
||||
@@ -2289,8 +2290,8 @@ static int dme1737_init_device(struct device *dev)
|
||||
*/
|
||||
if (dme1737_i2c_get_features(0x2e, data) &&
|
||||
dme1737_i2c_get_features(0x4e, data)) {
|
||||
dev_warn(dev, "Failed to query Super-IO for optional "
|
||||
"features.\n");
|
||||
dev_warn(dev,
|
||||
"Failed to query Super-IO for optional features.\n");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2317,8 +2318,8 @@ static int dme1737_init_device(struct device *dev)
|
||||
break;
|
||||
}
|
||||
|
||||
dev_info(dev, "Optional features: pwm3=%s, pwm5=%s, pwm6=%s, "
|
||||
"fan3=%s, fan4=%s, fan5=%s, fan6=%s.\n",
|
||||
dev_info(dev,
|
||||
"Optional features: pwm3=%s, pwm5=%s, pwm6=%s, fan3=%s, fan4=%s, fan5=%s, fan6=%s.\n",
|
||||
(data->has_features & HAS_PWM(2)) ? "yes" : "no",
|
||||
(data->has_features & HAS_PWM(4)) ? "yes" : "no",
|
||||
(data->has_features & HAS_PWM(5)) ? "yes" : "no",
|
||||
@@ -2330,18 +2331,16 @@ static int dme1737_init_device(struct device *dev)
|
||||
reg = dme1737_read(data, DME1737_REG_TACH_PWM);
|
||||
/* Inform if fan-to-pwm mapping differs from the default */
|
||||
if (client && reg != 0xa4) { /* I2C chip */
|
||||
dev_warn(dev, "Non-standard fan to pwm mapping: "
|
||||
"fan1->pwm%d, fan2->pwm%d, fan3->pwm%d, "
|
||||
"fan4->pwm%d. Please report to the driver "
|
||||
"maintainer.\n",
|
||||
dev_warn(dev,
|
||||
"Non-standard fan to pwm mapping: fan1->pwm%d, fan2->pwm%d, fan3->pwm%d, fan4->pwm%d. %s\n",
|
||||
(reg & 0x03) + 1, ((reg >> 2) & 0x03) + 1,
|
||||
((reg >> 4) & 0x03) + 1, ((reg >> 6) & 0x03) + 1);
|
||||
((reg >> 4) & 0x03) + 1, ((reg >> 6) & 0x03) + 1,
|
||||
DO_REPORT);
|
||||
} else if (!client && reg != 0x24) { /* ISA chip */
|
||||
dev_warn(dev, "Non-standard fan to pwm mapping: "
|
||||
"fan1->pwm%d, fan2->pwm%d, fan3->pwm%d. "
|
||||
"Please report to the driver maintainer.\n",
|
||||
dev_warn(dev,
|
||||
"Non-standard fan to pwm mapping: fan1->pwm%d, fan2->pwm%d, fan3->pwm%d. %s\n",
|
||||
(reg & 0x03) + 1, ((reg >> 2) & 0x03) + 1,
|
||||
((reg >> 4) & 0x03) + 1);
|
||||
((reg >> 4) & 0x03) + 1, DO_REPORT);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -2355,8 +2354,9 @@ static int dme1737_init_device(struct device *dev)
|
||||
DME1737_REG_PWM_CONFIG(ix));
|
||||
if ((data->has_features & HAS_PWM(ix)) &&
|
||||
(PWM_EN_FROM_REG(data->pwm_config[ix]) == -1)) {
|
||||
dev_info(dev, "Switching pwm%d to "
|
||||
"manual mode.\n", ix + 1);
|
||||
dev_info(dev,
|
||||
"Switching pwm%d to manual mode.\n",
|
||||
ix + 1);
|
||||
data->pwm_config[ix] = PWM_EN_TO_REG(1,
|
||||
data->pwm_config[ix]);
|
||||
dme1737_write(data, DME1737_REG_PWM(ix), 0);
|
||||
|
||||
@@ -189,8 +189,8 @@ static void fam15h_power_init_data(struct pci_dev *f4,
|
||||
|
||||
/* result not allowed to be >= 256W */
|
||||
if ((tmp >> 16) >= 256)
|
||||
dev_warn(&f4->dev, "Bogus value for ProcessorPwrWatts "
|
||||
"(processor_pwr_watts>=%u)\n",
|
||||
dev_warn(&f4->dev,
|
||||
"Bogus value for ProcessorPwrWatts (processor_pwr_watts>=%u)\n",
|
||||
(unsigned int) (tmp >> 16));
|
||||
|
||||
/* convert to microWatt */
|
||||
|
||||
@@ -463,8 +463,9 @@ static ssize_t store_fan_div(struct device *dev, struct device_attribute
|
||||
v = 3;
|
||||
break;
|
||||
default:
|
||||
dev_err(dev, "fan_div value %lu not supported. "
|
||||
"Choose one of 2, 4 or 8!\n", v);
|
||||
dev_err(dev,
|
||||
"fan_div value %lu not supported. Choose one of 2, 4 or 8!\n",
|
||||
v);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -1249,8 +1250,8 @@ static int fschmd_probe(struct i2c_client *client,
|
||||
}
|
||||
if (i == ARRAY_SIZE(watchdog_minors)) {
|
||||
data->watchdog_miscdev.minor = 0;
|
||||
dev_warn(&client->dev, "Couldn't register watchdog chardev "
|
||||
"(due to no free minor)\n");
|
||||
dev_warn(&client->dev,
|
||||
"Couldn't register watchdog chardev (due to no free minor)\n");
|
||||
}
|
||||
mutex_unlock(&watchdog_data_mutex);
|
||||
|
||||
|
||||
@@ -344,8 +344,9 @@ static ssize_t set_fan_div(struct device *dev, struct device_attribute *attr,
|
||||
val = 3;
|
||||
break;
|
||||
default:
|
||||
dev_err(dev, "Invalid fan clock divider %lu, choose one "
|
||||
"of 1, 2, 4 or 8\n", val);
|
||||
dev_err(dev,
|
||||
"Invalid fan clock divider %lu, choose one of 1, 2, 4 or 8\n",
|
||||
val);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
||||
+11
-10
@@ -289,8 +289,9 @@ static int aem_init_ipmi_data(struct aem_ipmi_data *data, int iface,
|
||||
err = ipmi_create_user(data->interface, &driver_data.ipmi_hndlrs,
|
||||
data, &data->user);
|
||||
if (err < 0) {
|
||||
dev_err(bmc, "Unable to register user with IPMI "
|
||||
"interface %d\n", data->interface);
|
||||
dev_err(bmc,
|
||||
"Unable to register user with IPMI interface %d\n",
|
||||
data->interface);
|
||||
return -EACCES;
|
||||
}
|
||||
|
||||
@@ -328,8 +329,8 @@ static void aem_msg_handler(struct ipmi_recv_msg *msg, void *user_msg_data)
|
||||
struct aem_ipmi_data *data = user_msg_data;
|
||||
|
||||
if (msg->msgid != data->tx_msgid) {
|
||||
dev_err(data->bmc_device, "Mismatch between received msgid "
|
||||
"(%02x) and transmitted msgid (%02x)!\n",
|
||||
dev_err(data->bmc_device,
|
||||
"Mismatch between received msgid (%02x) and transmitted msgid (%02x)!\n",
|
||||
(int)msg->msgid,
|
||||
(int)data->tx_msgid);
|
||||
ipmi_free_recv_msg(msg);
|
||||
@@ -575,8 +576,8 @@ static int aem_init_aem1_inst(struct aem_ipmi_data *probe, u8 module_handle)
|
||||
/* Register with hwmon */
|
||||
data->hwmon_dev = hwmon_device_register(&data->pdev->dev);
|
||||
if (IS_ERR(data->hwmon_dev)) {
|
||||
dev_err(&data->pdev->dev, "Unable to register hwmon "
|
||||
"device for IPMI interface %d\n",
|
||||
dev_err(&data->pdev->dev,
|
||||
"Unable to register hwmon device for IPMI interface %d\n",
|
||||
probe->interface);
|
||||
res = PTR_ERR(data->hwmon_dev);
|
||||
goto hwmon_reg_err;
|
||||
@@ -715,8 +716,8 @@ static int aem_init_aem2_inst(struct aem_ipmi_data *probe,
|
||||
/* Register with hwmon */
|
||||
data->hwmon_dev = hwmon_device_register(&data->pdev->dev);
|
||||
if (IS_ERR(data->hwmon_dev)) {
|
||||
dev_err(&data->pdev->dev, "Unable to register hwmon "
|
||||
"device for IPMI interface %d\n",
|
||||
dev_err(&data->pdev->dev,
|
||||
"Unable to register hwmon device for IPMI interface %d\n",
|
||||
probe->interface);
|
||||
res = PTR_ERR(data->hwmon_dev);
|
||||
goto hwmon_reg_err;
|
||||
@@ -768,8 +769,8 @@ static void aem_init_aem2(struct aem_ipmi_data *probe)
|
||||
|
||||
while (!aem_find_aem2(probe, &fi_resp, i)) {
|
||||
if (fi_resp.major != 2) {
|
||||
dev_err(probe->bmc_device, "Unknown AEM v%d; please "
|
||||
"report this to the maintainer.\n",
|
||||
dev_err(probe->bmc_device,
|
||||
"Unknown AEM v%d; please report this to the maintainer.\n",
|
||||
fi_resp.major);
|
||||
i++;
|
||||
continue;
|
||||
|
||||
@@ -163,8 +163,8 @@ static int ibmpex_ver_check(struct ibmpex_bmc_data *data)
|
||||
data->sensor_major = data->rx_msg_data[0];
|
||||
data->sensor_minor = data->rx_msg_data[1];
|
||||
|
||||
dev_info(data->bmc_device, "Found BMC with sensor interface "
|
||||
"v%d.%d %d-%02d-%02d on interface %d\n",
|
||||
dev_info(data->bmc_device,
|
||||
"Found BMC with sensor interface v%d.%d %d-%02d-%02d on interface %d\n",
|
||||
data->sensor_major,
|
||||
data->sensor_minor,
|
||||
extract_value(data->rx_msg_data, 2),
|
||||
@@ -478,8 +478,9 @@ static void ibmpex_register_bmc(int iface, struct device *dev)
|
||||
err = ipmi_create_user(data->interface, &driver_data.ipmi_hndlrs,
|
||||
data, &data->user);
|
||||
if (err < 0) {
|
||||
dev_err(dev, "Unable to register user with IPMI "
|
||||
"interface %d\n", data->interface);
|
||||
dev_err(dev,
|
||||
"Unable to register user with IPMI interface %d\n",
|
||||
data->interface);
|
||||
goto out;
|
||||
}
|
||||
|
||||
@@ -501,8 +502,8 @@ static void ibmpex_register_bmc(int iface, struct device *dev)
|
||||
data->hwmon_dev = hwmon_device_register(data->bmc_device);
|
||||
|
||||
if (IS_ERR(data->hwmon_dev)) {
|
||||
dev_err(data->bmc_device, "Unable to register hwmon "
|
||||
"device for IPMI interface %d\n",
|
||||
dev_err(data->bmc_device,
|
||||
"Unable to register hwmon device for IPMI interface %d\n",
|
||||
data->interface);
|
||||
goto out_user;
|
||||
}
|
||||
@@ -567,8 +568,8 @@ static void ibmpex_msg_handler(struct ipmi_recv_msg *msg, void *user_msg_data)
|
||||
struct ibmpex_bmc_data *data = (struct ibmpex_bmc_data *)user_msg_data;
|
||||
|
||||
if (msg->msgid != data->tx_msgid) {
|
||||
dev_err(data->bmc_device, "Mismatch between received msgid "
|
||||
"(%02x) and transmitted msgid (%02x)!\n",
|
||||
dev_err(data->bmc_device,
|
||||
"Mismatch between received msgid (%02x) and transmitted msgid (%02x)!\n",
|
||||
(int)msg->msgid,
|
||||
(int)data->tx_msgid);
|
||||
ipmi_free_recv_msg(msg);
|
||||
|
||||
@@ -200,8 +200,8 @@ static int k8temp_probe(struct pci_dev *pdev,
|
||||
*/
|
||||
if (model >= 0x40) {
|
||||
data->swap_core_select = 1;
|
||||
dev_warn(&pdev->dev, "Temperature readouts might be wrong - "
|
||||
"check erratum #141\n");
|
||||
dev_warn(&pdev->dev,
|
||||
"Temperature readouts might be wrong - check erratum #141\n");
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -386,8 +386,9 @@ static ssize_t set_fan_div(struct device *dev, struct device_attribute *da,
|
||||
data->fan_div[nr] = 3;
|
||||
break;
|
||||
default:
|
||||
dev_err(dev, "fan_div value %ld not "
|
||||
"supported. Choose one of 1, 2, 4 or 8!\n", val);
|
||||
dev_err(dev,
|
||||
"fan_div value %ld not supported. Choose one of 1, 2, 4 or 8!\n",
|
||||
val);
|
||||
mutex_unlock(&data->update_lock);
|
||||
return -EINVAL;
|
||||
}
|
||||
@@ -636,8 +637,9 @@ static int lm78_i2c_detect(struct i2c_client *client,
|
||||
goto err_nodev;
|
||||
|
||||
if (lm78_alias_detect(client, i)) {
|
||||
dev_dbg(&adapter->dev, "Device at 0x%02x appears to "
|
||||
"be the same as ISA device\n", address);
|
||||
dev_dbg(&adapter->dev,
|
||||
"Device at 0x%02x appears to be the same as ISA device\n",
|
||||
address);
|
||||
goto err_nodev;
|
||||
}
|
||||
|
||||
|
||||
@@ -286,8 +286,9 @@ static ssize_t set_fan_div(struct device *dev, struct device_attribute *attr,
|
||||
data->fan_div[nr] = 3;
|
||||
break;
|
||||
default:
|
||||
dev_err(&client->dev, "fan_div value %ld not "
|
||||
"supported. Choose one of 1, 2, 4 or 8!\n", val);
|
||||
dev_err(&client->dev,
|
||||
"fan_div value %ld not supported. Choose one of 1, 2, 4 or 8!\n",
|
||||
val);
|
||||
mutex_unlock(&data->update_lock);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -1293,8 +1293,8 @@ static int lm85_detect(struct i2c_client *client, struct i2c_board_info *info)
|
||||
company = lm85_read_value(client, LM85_REG_COMPANY);
|
||||
verstep = lm85_read_value(client, LM85_REG_VERSTEP);
|
||||
|
||||
dev_dbg(&adapter->dev, "Detecting device at 0x%02x with "
|
||||
"COMPANY: 0x%02x and VERSTEP: 0x%02x\n",
|
||||
dev_dbg(&adapter->dev,
|
||||
"Detecting device at 0x%02x with COMPANY: 0x%02x and VERSTEP: 0x%02x\n",
|
||||
address, company, verstep);
|
||||
|
||||
/* All supported chips have the version in common */
|
||||
|
||||
+20
-16
@@ -818,8 +818,9 @@ static u8 lm93_read_byte(struct i2c_client *client, u8 reg)
|
||||
if (value >= 0) {
|
||||
return value;
|
||||
} else {
|
||||
dev_warn(&client->dev, "lm93: read byte data failed, "
|
||||
"address 0x%02x.\n", reg);
|
||||
dev_warn(&client->dev,
|
||||
"lm93: read byte data failed, address 0x%02x.\n",
|
||||
reg);
|
||||
mdelay(i + 3);
|
||||
}
|
||||
|
||||
@@ -838,8 +839,9 @@ static int lm93_write_byte(struct i2c_client *client, u8 reg, u8 value)
|
||||
result = i2c_smbus_write_byte_data(client, reg, value);
|
||||
|
||||
if (result < 0)
|
||||
dev_warn(&client->dev, "lm93: write byte data failed, "
|
||||
"0x%02x at address 0x%02x.\n", value, reg);
|
||||
dev_warn(&client->dev,
|
||||
"lm93: write byte data failed, 0x%02x at address 0x%02x.\n",
|
||||
value, reg);
|
||||
|
||||
return result;
|
||||
}
|
||||
@@ -854,8 +856,9 @@ static u16 lm93_read_word(struct i2c_client *client, u8 reg)
|
||||
if (value >= 0) {
|
||||
return value;
|
||||
} else {
|
||||
dev_warn(&client->dev, "lm93: read word data failed, "
|
||||
"address 0x%02x.\n", reg);
|
||||
dev_warn(&client->dev,
|
||||
"lm93: read word data failed, address 0x%02x.\n",
|
||||
reg);
|
||||
mdelay(i + 3);
|
||||
}
|
||||
|
||||
@@ -874,8 +877,9 @@ static int lm93_write_word(struct i2c_client *client, u8 reg, u16 value)
|
||||
result = i2c_smbus_write_word_data(client, reg, value);
|
||||
|
||||
if (result < 0)
|
||||
dev_warn(&client->dev, "lm93: write word data failed, "
|
||||
"0x%04x at address 0x%02x.\n", value, reg);
|
||||
dev_warn(&client->dev,
|
||||
"lm93: write word data failed, 0x%04x at address 0x%02x.\n",
|
||||
value, reg);
|
||||
|
||||
return result;
|
||||
}
|
||||
@@ -898,8 +902,8 @@ static void lm93_read_block(struct i2c_client *client, u8 fbn, u8 *values)
|
||||
if (result == lm93_block_read_cmds[fbn].len) {
|
||||
break;
|
||||
} else {
|
||||
dev_warn(&client->dev, "lm93: block read data failed, "
|
||||
"command 0x%02x.\n",
|
||||
dev_warn(&client->dev,
|
||||
"lm93: block read data failed, command 0x%02x.\n",
|
||||
lm93_block_read_cmds[fbn].cmd);
|
||||
mdelay(i + 3);
|
||||
}
|
||||
@@ -2672,8 +2676,8 @@ static void lm93_init_client(struct i2c_client *client)
|
||||
return;
|
||||
}
|
||||
|
||||
dev_warn(&client->dev, "timed out waiting for sensor "
|
||||
"chip to signal ready!\n");
|
||||
dev_warn(&client->dev,
|
||||
"timed out waiting for sensor chip to signal ready!\n");
|
||||
}
|
||||
|
||||
/* Return 0 if detection is successful, -ENODEV otherwise */
|
||||
@@ -2733,12 +2737,12 @@ static int lm93_probe(struct i2c_client *client,
|
||||
dev_dbg(&client->dev, "using SMBus block data transactions\n");
|
||||
update = lm93_update_client_full;
|
||||
} else if ((LM93_SMBUS_FUNC_MIN & func) == LM93_SMBUS_FUNC_MIN) {
|
||||
dev_dbg(&client->dev, "disabled SMBus block data "
|
||||
"transactions\n");
|
||||
dev_dbg(&client->dev,
|
||||
"disabled SMBus block data transactions\n");
|
||||
update = lm93_update_client_min;
|
||||
} else {
|
||||
dev_dbg(&client->dev, "detect failed, "
|
||||
"smbus byte and/or word data not supported!\n");
|
||||
dev_dbg(&client->dev,
|
||||
"detect failed, smbus byte and/or word data not supported!\n");
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
|
||||
+12
-13
@@ -1190,8 +1190,7 @@ static int __init pc87360_find(int sioaddr, u8 *devid,
|
||||
confreg[3] = superio_inb(sioaddr, 0x25);
|
||||
|
||||
if (confreg[2] & 0x40) {
|
||||
pr_info("Using thermistors for "
|
||||
"temperature monitoring\n");
|
||||
pr_info("Using thermistors for temperature monitoring\n");
|
||||
}
|
||||
if (confreg[3] & 0xE0) {
|
||||
pr_info("VID inputs routed (mode %u)\n",
|
||||
@@ -1271,9 +1270,9 @@ static int pc87360_probe(struct platform_device *pdev)
|
||||
if (data->address[i]
|
||||
&& !devm_request_region(dev, extra_isa[i], PC87360_EXTENT,
|
||||
pc87360_driver.driver.name)) {
|
||||
dev_err(dev, "Region 0x%x-0x%x already "
|
||||
"in use!\n", extra_isa[i],
|
||||
extra_isa[i]+PC87360_EXTENT-1);
|
||||
dev_err(dev,
|
||||
"Region 0x%x-0x%x already in use!\n",
|
||||
extra_isa[i], extra_isa[i]+PC87360_EXTENT-1);
|
||||
return -EBUSY;
|
||||
}
|
||||
}
|
||||
@@ -1435,8 +1434,8 @@ static void pc87360_init_device(struct platform_device *pdev,
|
||||
if (init >= 2 && data->innr) {
|
||||
reg = pc87360_read_value(data, LD_IN, NO_BANK,
|
||||
PC87365_REG_IN_CONVRATE);
|
||||
dev_info(&pdev->dev, "VLM conversion set to "
|
||||
"1s period, 160us delay\n");
|
||||
dev_info(&pdev->dev,
|
||||
"VLM conversion set to 1s period, 160us delay\n");
|
||||
pc87360_write_value(data, LD_IN, NO_BANK,
|
||||
PC87365_REG_IN_CONVRATE,
|
||||
(reg & 0xC0) | 0x11);
|
||||
@@ -1450,8 +1449,8 @@ static void pc87360_init_device(struct platform_device *pdev,
|
||||
if (init >= init_in[i]) {
|
||||
/* Forcibly enable voltage channel */
|
||||
if (!(reg & CHAN_ENA)) {
|
||||
dev_dbg(&pdev->dev, "Forcibly "
|
||||
"enabling in%d\n", i);
|
||||
dev_dbg(&pdev->dev, "Forcibly enabling in%d\n",
|
||||
i);
|
||||
pc87360_write_value(data, LD_IN, i,
|
||||
PC87365_REG_IN_STATUS,
|
||||
(reg & 0x68) | 0x87);
|
||||
@@ -1575,8 +1574,8 @@ static void pc87360_autodiv(struct device *dev, int nr)
|
||||
data->fan_status[nr] += 0x20;
|
||||
data->fan_min[nr] >>= 1;
|
||||
data->fan[nr] >>= 1;
|
||||
dev_dbg(dev, "Increasing "
|
||||
"clock divider to %d for fan %d\n",
|
||||
dev_dbg(dev,
|
||||
"Increasing clock divider to %d for fan %d\n",
|
||||
FAN_DIV_FROM_REG(data->fan_status[nr]), nr + 1);
|
||||
}
|
||||
} else {
|
||||
@@ -1587,8 +1586,8 @@ static void pc87360_autodiv(struct device *dev, int nr)
|
||||
data->fan_status[nr] -= 0x20;
|
||||
data->fan_min[nr] <<= 1;
|
||||
data->fan[nr] <<= 1;
|
||||
dev_dbg(dev, "Decreasing "
|
||||
"clock divider to %d for fan %d\n",
|
||||
dev_dbg(dev,
|
||||
"Decreasing clock divider to %d for fan %d\n",
|
||||
FAN_DIV_FROM_REG(data->fan_status[nr]),
|
||||
nr + 1);
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user