]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
gpio: pca953x: clarify log messages about auto increment feature
authorMichael Roth <mail@mroth.net>
Sat, 18 Oct 2025 10:14:04 +0000 (12:14 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 20 Oct 2025 07:23:50 +0000 (09:23 +0200)
The probe messages currently print "using AI" and "using no AI",
which can be confusing to users unfamiliar with the datasheet term.

Clarify these by spelling out "auto increment", which is the meaning
of the AI bit described in the register map.

No functional change, only clearer log wording and matching comment
update.

Signed-off-by: Michael Roth <mail@mroth.net>
Link: https://lore.kernel.org/r/20251018101404.3630905-1-mail@mroth.net
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-pca953x.c

index 9e72439f6c9261ae73e8909c1c5691d6a9e69ee5..0a3916cc2772a19de90c7683cb7dc7010524f71e 100644 (file)
@@ -306,7 +306,7 @@ static inline u8 pca953x_get_bit_mask(struct pca953x_chip *chip, unsigned int of
  *     Interrupt mask register         0x40 + 5 * bank_size    RW
  *     Interrupt status register       0x40 + 6 * bank_size    R
  *
- * - Registers with bit 0x80 set, the AI bit
+ * - Registers with bit 0x80 set, the AI bit (auto increment)
  *   The bit is cleared and the registers fall into one of the
  *   categories above.
  */
@@ -1206,10 +1206,10 @@ static int pca953x_probe(struct i2c_client *client)
        pca953x_setup_gpio(chip, chip->driver_data & PCA_GPIO_MASK);
 
        if (NBANK(chip) > 2 || PCA_CHIP_TYPE(chip->driver_data) == PCA957X_TYPE) {
-               dev_info(dev, "using AI\n");
+               dev_info(dev, "using auto increment\n");
                regmap_config = &pca953x_ai_i2c_regmap;
        } else {
-               dev_info(dev, "using no AI\n");
+               dev_info(dev, "using no auto increment\n");
                regmap_config = &pca953x_i2c_regmap;
        }