Skip to content

Commit 5d0e481

Browse files
innovaralag-linaro
authored andcommitted
leds: leds-st1202: Spacing and proofreading editing
Minor edits regarding use of spacing and proofreading. There is a minor inconsistency in the use of spacing as margin in one of the comments providing details about the datasheet. There is also a typo that comes from the datasheet itself. Change spacing on comment and correct typo. Signed-off-by: Manuel Fombuena <[email protected]> Link: https://lore.kernel.org/r/CWLP123MB547333EFFFBFFA840225BC02C5C22@CWLP123MB5473.GBRP123.PROD.OUTLOOK.COM Signed-off-by: Lee Jones <[email protected]>
1 parent a17d9e7 commit 5d0e481

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/leds/leds-st1202.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ static int st1202_pwm_pattern_write(struct st1202_chip *chip, int led_num,
9999
value_h = (u8)(value >> 8);
100100

101101
/*
102-
* Datasheet: Register address low = 1Eh + 2*(xh) + 18h*(yh),
103-
* where x is the channel number (led number) in hexadecimal (x = 00h .. 0Bh)
104-
* and y is the pattern number in hexadecimal (y = 00h .. 07h)
102+
* Datasheet: Register address low = 1Eh + 2*(xh) + 18h*(yh),
103+
* where x is the channel number (led number) in hexadecimal (x = 00h .. 0Bh)
104+
* and y is the pattern number in hexadecimal (y = 00h .. 07h)
105105
*/
106106
ret = st1202_write_reg(chip, (ST1202_PATTERN_PWM + (led_num * 2) + 0x18 * pattern),
107107
value_l);
@@ -298,8 +298,8 @@ static int st1202_setup(struct st1202_chip *chip)
298298
guard(mutex)(&chip->lock);
299299

300300
/*
301-
* Once the supply voltage is applied, the LED1202 executes some internal checks,
302-
* afterwords it stops the oscillator and puts the internal LDO in quiescent mode.
301+
* Once the supply voltage is applied, the LED1202 executes some internal checks.
302+
* Afterwards, it stops the oscillator and puts the internal LDO in quiescent mode.
303303
* To start the device, EN bit must be set inside the “Device Enable” register at
304304
* address 01h. As soon as EN is set, the LED1202 loads the adjustment parameters
305305
* from the internal non-volatile memory and performs an auto-calibration procedure

0 commit comments

Comments
 (0)