|
@@ -174,17 +174,17 @@ static int __maybe_unused gpio_chip_hwgpio(const struct gpio_desc *desc)
|
|
|
/* With chip prefix */
|
|
|
|
|
|
#define chip_emerg(chip, fmt, ...) \
|
|
|
- pr_emerg("GPIO chip %s: " fmt, chip->label, ##__VA_ARGS__)
|
|
|
+ dev_emerg(&chip->gpiodev->dev, "(%s): " fmt, chip->label, ##__VA_ARGS__)
|
|
|
#define chip_crit(chip, fmt, ...) \
|
|
|
- pr_crit("GPIO chip %s: " fmt, chip->label, ##__VA_ARGS__)
|
|
|
+ dev_crit(&chip->gpiodev->dev, "(%s): " fmt, chip->label, ##__VA_ARGS__)
|
|
|
#define chip_err(chip, fmt, ...) \
|
|
|
- pr_err("GPIO chip %s: " fmt, chip->label, ##__VA_ARGS__)
|
|
|
+ dev_err(&chip->gpiodev->dev, "(%s): " fmt, chip->label, ##__VA_ARGS__)
|
|
|
#define chip_warn(chip, fmt, ...) \
|
|
|
- pr_warn("GPIO chip %s: " fmt, chip->label, ##__VA_ARGS__)
|
|
|
+ dev_warn(&chip->gpiodev->dev, "(%s): " fmt, chip->label, ##__VA_ARGS__)
|
|
|
#define chip_info(chip, fmt, ...) \
|
|
|
- pr_info("GPIO chip %s: " fmt, chip->label, ##__VA_ARGS__)
|
|
|
+ dev_info(&chip->gpiodev->dev, "(%s): " fmt, chip->label, ##__VA_ARGS__)
|
|
|
#define chip_dbg(chip, fmt, ...) \
|
|
|
- pr_debug("GPIO chip %s: " fmt, chip->label, ##__VA_ARGS__)
|
|
|
+ dev_dbg(&chip->gpiodev->dev, "(%s): " fmt, chip->label, ##__VA_ARGS__)
|
|
|
|
|
|
#ifdef CONFIG_GPIO_SYSFS
|
|
|
|