Input: edt-ft5x06 - add spaces to ensure format specification
authorDario Binacchi <dario.binacchi@amarulasolutions.com>
Sun, 2 Apr 2023 23:58:29 +0000 (16:58 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 3 Apr 2023 04:37:54 +0000 (21:37 -0700)
It adds spaces around '-' as recommended by the Linux coding style.

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Link: https://lore.kernel.org/r/20230402200951.1032513-4-dario.binacchi@amarulasolutions.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/edt-ft5x06.c

index c0ad3e4b6662dd97a4ce4fd70c5fb45e524ce771..c96fe6520578eee681bc75b0cb43a5366885574b 100644 (file)
@@ -183,11 +183,11 @@ static bool edt_ft5x06_ts_check_crc(struct edt_ft5x06_ts_data *tsdata,
        for (i = 0; i < buflen - 1; i++)
                crc ^= buf[i];
 
-       if (crc != buf[buflen-1]) {
+       if (crc != buf[buflen - 1]) {
                tsdata->crc_errors++;
                dev_err_ratelimited(&tsdata->client->dev,
                                    "crc error: 0x%02x expected, got 0x%02x\n",
-                                   crc, buf[buflen-1]);
+                                   crc, buf[buflen - 1]);
                return false;
        }