backlight: qcom-wled: Remove unnecessary double whitespace
authorMarijn Suijten <marijn.suijten@somainline.org>
Mon, 15 Nov 2021 20:34:58 +0000 (21:34 +0100)
committerLee Jones <lee.jones@linaro.org>
Wed, 22 Dec 2021 11:18:24 +0000 (11:18 +0000)
Remove redundant spaces inside for loop conditions.  No other double
spaces were found that are not part of indentation with `[^\s]  `.

Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20211115203459.1634079-9-marijn.suijten@somainline.org
drivers/video/backlight/qcom-wled.c

index f975c1f6398bf146a75a888308bd8203357d0ff7..e2a78f4a9668464fbea3b8f4722e1cea25a9d247 100644 (file)
@@ -235,7 +235,7 @@ static int wled3_set_brightness(struct wled *wled, u16 brightness)
 
        v = cpu_to_le16(brightness & WLED3_SINK_REG_BRIGHT_MAX);
 
-       for (i = 0;  i < wled->cfg.num_strings; ++i) {
+       for (i = 0; i < wled->cfg.num_strings; ++i) {
                rc = regmap_bulk_write(wled->regmap, wled->ctrl_addr +
                                       WLED3_SINK_REG_BRIGHT(i),
                                       &v, sizeof(v));
@@ -258,7 +258,7 @@ static int wled4_set_brightness(struct wled *wled, u16 brightness)
 
        v = cpu_to_le16(brightness & WLED3_SINK_REG_BRIGHT_MAX);
 
-       for (i = 0;  i < wled->cfg.num_strings; ++i) {
+       for (i = 0; i < wled->cfg.num_strings; ++i) {
                rc = regmap_bulk_write(wled->regmap, wled->sink_addr +
                                       WLED4_SINK_REG_BRIGHT(i),
                                       &v, sizeof(v));