Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

backlight: journada720: Fix Wmisleading-indentation warning

With gcc-11, we get a warning about code that looks correct
but badly indented:

drivers/video/backlight/jornada720_bl.c: In function ‘jornada_bl_update_status’:
drivers/video/backlight/jornada720_bl.c:66:11: error: this ‘else’ clause does not guard... [-Werror=misleading-indentation]
66 | } else /* turn on backlight */
| ^~~~

Change the formatting according to our normal conventions.

Fixes: 13a7b5dc0d17 ("backlight: Adds HP Jornada 700 series backlight driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Arnd Bergmann and committed by
Lee Jones
04758386 5eb622ee

+22 -22
+22 -22
drivers/video/backlight/jornada720_bl.c
··· 66 66 } else /* turn on backlight */ 67 67 PPSR |= PPC_LDD1; 68 68 69 - /* send command to our mcu */ 70 - if (jornada_ssp_byte(SETBRIGHTNESS) != TXDUMMY) { 71 - dev_info(&bd->dev, "failed to set brightness\n"); 72 - ret = -ETIMEDOUT; 73 - goto out; 74 - } 69 + /* send command to our mcu */ 70 + if (jornada_ssp_byte(SETBRIGHTNESS) != TXDUMMY) { 71 + dev_info(&bd->dev, "failed to set brightness\n"); 72 + ret = -ETIMEDOUT; 73 + goto out; 74 + } 75 75 76 - /* 77 - * at this point we expect that the mcu has accepted 78 - * our command and is waiting for our new value 79 - * please note that maximum brightness is 255, 80 - * but due to physical layout it is equal to 0, so we simply 81 - * invert the value (MAX VALUE - NEW VALUE). 82 - */ 83 - if (jornada_ssp_byte(BL_MAX_BRIGHT - bd->props.brightness) 84 - != TXDUMMY) { 85 - dev_err(&bd->dev, "set brightness failed\n"); 86 - ret = -ETIMEDOUT; 87 - } 76 + /* 77 + * at this point we expect that the mcu has accepted 78 + * our command and is waiting for our new value 79 + * please note that maximum brightness is 255, 80 + * but due to physical layout it is equal to 0, so we simply 81 + * invert the value (MAX VALUE - NEW VALUE). 82 + */ 83 + if (jornada_ssp_byte(BL_MAX_BRIGHT - bd->props.brightness) 84 + != TXDUMMY) { 85 + dev_err(&bd->dev, "set brightness failed\n"); 86 + ret = -ETIMEDOUT; 87 + } 88 88 89 - /* 90 - * If infact we get an TXDUMMY as output we are happy and dont 91 - * make any further comments about it 92 - */ 89 + /* 90 + * If infact we get an TXDUMMY as output we are happy and dont 91 + * make any further comments about it 92 + */ 93 93 out: 94 94 jornada_ssp_end(); 95 95