2022-06-22 06:56:44

by Jiang Jian

[permalink] [raw]
Subject: [PATCH] hwmon: (pmbus/ucd9200): fix typos in comments

Drop the redundant word 'the' in the comments following
/*
* Set PHASE registers on all pages to 0xff to ensure that phase
* specific commands will apply to all phases of a given page (rail).
* This only affects the READ_IOUT and READ_TEMPERATURE2 registers.
* READ_IOUT will return the sum of currents of all phases of a rail,
* and READ_TEMPERATURE2 will return the maximum temperature detected
* for the [the - DROP] phases of the rail.
*/

Signed-off-by: Jiang Jian <[email protected]>
---
drivers/hwmon/pmbus/ucd9200.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/hwmon/pmbus/ucd9200.c b/drivers/hwmon/pmbus/ucd9200.c
index 6bc3273e31e7..3ad375a76f3e 100644
--- a/drivers/hwmon/pmbus/ucd9200.c
+++ b/drivers/hwmon/pmbus/ucd9200.c
@@ -148,7 +148,7 @@ static int ucd9200_probe(struct i2c_client *client)
* This only affects the READ_IOUT and READ_TEMPERATURE2 registers.
* READ_IOUT will return the sum of currents of all phases of a rail,
* and READ_TEMPERATURE2 will return the maximum temperature detected
- * for the the phases of the rail.
+ * for the phases of the rail.
*/
for (i = 0; i < info->pages; i++) {
/*
--
2.17.1


2022-06-29 21:17:02

by Guenter Roeck

[permalink] [raw]
Subject: Re: [PATCH] hwmon: (pmbus/ucd9200): fix typos in comments

On Wed, Jun 22, 2022 at 02:32:31PM +0800, Jiang Jian wrote:
> Drop the redundant word 'the' in the comments following
> /*
> * Set PHASE registers on all pages to 0xff to ensure that phase
> * specific commands will apply to all phases of a given page (rail).
> * This only affects the READ_IOUT and READ_TEMPERATURE2 registers.
> * READ_IOUT will return the sum of currents of all phases of a rail,
> * and READ_TEMPERATURE2 will return the maximum temperature detected
> * for the [the - DROP] phases of the rail.
> */
>
> Signed-off-by: Jiang Jian <[email protected]>

Applied.

Thanks,
Guenter

> ---
> drivers/hwmon/pmbus/ucd9200.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/hwmon/pmbus/ucd9200.c b/drivers/hwmon/pmbus/ucd9200.c
> index 6bc3273e31e7..3ad375a76f3e 100644
> --- a/drivers/hwmon/pmbus/ucd9200.c
> +++ b/drivers/hwmon/pmbus/ucd9200.c
> @@ -148,7 +148,7 @@ static int ucd9200_probe(struct i2c_client *client)
> * This only affects the READ_IOUT and READ_TEMPERATURE2 registers.
> * READ_IOUT will return the sum of currents of all phases of a rail,
> * and READ_TEMPERATURE2 will return the maximum temperature detected
> - * for the the phases of the rail.
> + * for the phases of the rail.
> */
> for (i = 0; i < info->pages; i++) {
> /*