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

gpio: pca953x: clarify log messages about auto increment feature

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>

authored by

Michael Roth and committed by
Bartosz Golaszewski
6f5976c0 eba11116

+3 -3
+3 -3
drivers/gpio/gpio-pca953x.c
··· 306 306 * Interrupt mask register 0x40 + 5 * bank_size RW 307 307 * Interrupt status register 0x40 + 6 * bank_size R 308 308 * 309 - * - Registers with bit 0x80 set, the AI bit 309 + * - Registers with bit 0x80 set, the AI bit (auto increment) 310 310 * The bit is cleared and the registers fall into one of the 311 311 * categories above. 312 312 */ ··· 1206 1206 pca953x_setup_gpio(chip, chip->driver_data & PCA_GPIO_MASK); 1207 1207 1208 1208 if (NBANK(chip) > 2 || PCA_CHIP_TYPE(chip->driver_data) == PCA957X_TYPE) { 1209 - dev_info(dev, "using AI\n"); 1209 + dev_info(dev, "using auto increment\n"); 1210 1210 regmap_config = &pca953x_ai_i2c_regmap; 1211 1211 } else { 1212 - dev_info(dev, "using no AI\n"); 1212 + dev_info(dev, "using no auto increment\n"); 1213 1213 regmap_config = &pca953x_i2c_regmap; 1214 1214 } 1215 1215