mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
hwmon: fix typos in comments
Fix typos in comments, reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes. Assisted-by: Cursor:claude-opus-5 Signed-off-by: Hemanth Selam <hemanth.selam@gmail.com> Link: https://patch.msgid.link/20260904114249.26515-1-hemanth.selam@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
a719a0a00e
commit
f911449600
|
|
@ -475,7 +475,7 @@ abituguru_detect_bank1_sensor_type(struct abituguru_data *data,
|
|||
u8 val, test_flag, buf[3];
|
||||
int i, ret = -ENODEV; /* error is the most common used retval :| */
|
||||
|
||||
/* If overriden by the user return the user selected type */
|
||||
/* If overridden by the user return the user selected type */
|
||||
if (bank1_types[sensor_addr] >= ABIT_UGURU_IN_SENSOR &&
|
||||
bank1_types[sensor_addr] <= ABIT_UGURU_NC) {
|
||||
ABIT_UGURU_DEBUG(2, "assuming sensor type %d for bank1 sensor "
|
||||
|
|
@ -1262,7 +1262,7 @@ static int abituguru_probe(struct platform_device *pdev)
|
|||
|
||||
/*
|
||||
* El weirdo probe order, to keep the sysfs order identical to the
|
||||
* BIOS and window-appliction listing order.
|
||||
* BIOS and window-application listing order.
|
||||
*/
|
||||
static const u8 probe_order[ABIT_UGURU_MAX_BANK1_SENSORS] = {
|
||||
0x00, 0x01, 0x03, 0x04, 0x0A, 0x08, 0x0E, 0x02,
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ static int adm1177_read(struct device *dev, enum hwmon_sensor_types type,
|
|||
return ret;
|
||||
dummy = (data[0] << 4) | (data[2] >> 4);
|
||||
/*
|
||||
* convert to millivolts based on resistor devision
|
||||
* convert to millivolts based on resistor division
|
||||
* (V_fullscale / 4096) * raw
|
||||
*/
|
||||
if (st->vrange_high)
|
||||
|
|
|
|||
|
|
@ -338,7 +338,7 @@ int adt7x10_probe(struct device *dev, const char *name, int irq,
|
|||
data->oldconfig = config;
|
||||
|
||||
/*
|
||||
* Set to 16 bit resolution, continous conversion and comparator mode.
|
||||
* Set to 16 bit resolution, continuous conversion and comparator mode.
|
||||
*/
|
||||
data->config = data->oldconfig;
|
||||
data->config &= ~(ADT7X10_MODE_MASK | ADT7X10_CT_POLARITY |
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ static const u8 REG_TEMP_MAX[4] = { 0x34, 0x30, 0x31, 0x32 };
|
|||
#define REG_PRODUCT_ID 0xfd
|
||||
#define REG_MFG_ID 0xfe
|
||||
|
||||
/* equation 4 from datasheet: rpm = (3932160 * multipler) / count */
|
||||
/* equation 4 from datasheet: rpm = (3932160 * multiplier) / count */
|
||||
#define FAN_RPM_FACTOR 3932160
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -1445,7 +1445,7 @@ static void lm85_init_client(struct i2c_client *client)
|
|||
static int lm85_is_fake(struct i2c_client *client)
|
||||
{
|
||||
/*
|
||||
* Differenciate between real LM96000 and Winbond WPCD377I. The latter
|
||||
* Differentiate between real LM96000 and Winbond WPCD377I. The latter
|
||||
* emulate the former except that it has no hardware monitoring function
|
||||
* so the readings are always 0.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -272,14 +272,14 @@ static int mp2888_write_word_data(struct i2c_client *client, int page, int reg,
|
|||
word = clamp_val(word, 0, GENMASK(7, 0));
|
||||
break;
|
||||
case PMBUS_IOUT_OC_WARN_LIMIT:
|
||||
/* Fix limit according to total curent resolution. */
|
||||
/* Fix limit according to total current resolution. */
|
||||
word = data->total_curr_resolution ? DIV_ROUND_CLOSEST(word, 8) :
|
||||
DIV_ROUND_CLOSEST(word, 4);
|
||||
/* Drop unused bits 15:10. */
|
||||
word = clamp_val(word, 0, GENMASK(9, 0));
|
||||
break;
|
||||
case PMBUS_POUT_OP_WARN_LIMIT:
|
||||
/* Fix limit according to total curent resolution. */
|
||||
/* Fix limit according to total current resolution. */
|
||||
word = data->total_curr_resolution ? DIV_ROUND_CLOSEST(word, 4) :
|
||||
DIV_ROUND_CLOSEST(word, 2);
|
||||
/* Drop unused bits 15:10. */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user