]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Input: stmfts - make comments correct
authorPetr Hodina <petr.hodina@protonmail.com>
Mon, 15 Dec 2025 14:30:02 +0000 (15:30 +0100)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 16 Dec 2025 05:51:16 +0000 (21:51 -0800)
No functional change.

Fixes: 78bcac7b2ae1 ("Input: add support for the STMicroelectronics FingerTip touchscreen")
Signed-off-by: Petr Hodina <petr.hodina@protonmail.com>
Signed-off-by: David Heidelberg <david@ixit.cz>
Link: https://patch.msgid.link/20251215-fts-fixes-v1-2-8c1e3a63ebf1@ixit.cz
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/stmfts.c

index 9f5609524fef630d10da1fe2297b5a647ea2746d..ad363b3c344cd28e0b8da8e59007583a581c7287 100644 (file)
@@ -141,7 +141,7 @@ static enum led_brightness stmfts_brightness_get(struct led_classdev *led_cdev)
 
 /*
  * We can't simply use i2c_smbus_read_i2c_block_data because we
- * need to read more than 255 bytes (
+ * need to read 256 bytes, which exceeds the 255-byte SMBus block limit.
  */
 static int stmfts_read_events(struct stmfts_data *sdata)
 {
@@ -594,9 +594,6 @@ static void stmfts_power_off(void *data)
                                                sdata->regulators);
 }
 
-/* This function is void because I don't want to prevent using the touch key
- * only because the LEDs don't get registered
- */
 static int stmfts_enable_led(struct stmfts_data *sdata)
 {
        int err;