Skip to contentSkip to conversation

hwmon: Convert comma to semicolon

PATCH Superseded Shen Lichuan 2 participants 2 messages Sep 18, 2024 Hardware monitoring

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hwmon: Convert comma to semicolon

To ensure code clarity and prevent potential errors, it's advisable to employ the ';' as a statement separator, except when ',' are intentionally used for specific purposes.

---
 drivers/hwmon/pmbus/mpq8785.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/pmbus/mpq8785.c +1 -1
index 7f87e117b49d..0d16491cd770 100644
@@ -22,7 +22,7 @@ static int mpq8785_identify(struct i2c_client *client,
 		break;
 	case 1:
 	case 2:
-		info->format[PSC_VOLTAGE_OUT] = direct,
+		info->format[PSC_VOLTAGE_OUT] = direct;
 		info->m[PSC_VOLTAGE_OUT] = 64;
 		info->b[PSC_VOLTAGE_OUT] = 0;
 		info->R[PSC_VOLTAGE_OUT] = 1;
Signature · 1 line
2.17.1
maintainer
#1 lore raw
Quoted 5 lines · Shen Lichuan

To ensure code clarity and prevent potential errors, it's advisable to employ the ';' as a statement separator, except when ',' are intentionally used for specific purposes.

The is expected to include include the driver name. Please check other patches into the hwmon subsystem for reference, and please consider reading the documentation about submitting patches. I am _not_ going to accept any patches which lack this information.

Guenter