lede/target/linux/bcm27xx/patches-6.12/950-0307-iio-adc-mcp3422-Add-correct-compatible-strings.patch
=?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= d81c03f05e bcm27xx: add 6.12 patches from RPi repo
These patches were generated from:
https://github.com/raspberrypi/linux/commits/rpi-6.12.y
With the following command:
git format-patch -N v6.12.27..HEAD
(HEAD -> 8d3206ee456a5ecdf9ddbfd8e5e231e4f0cd716e)

Exceptions:
- (def)configs patches
- github workflows patches
- applied & reverted patches
- readme patches
- wireless patches

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2025-06-20 17:01:06 +08:00

29 lines
998 B
Diff

From 2402085f23f025fa2a522992bf926c6b66271ff8 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.com>
Date: Mon, 6 Mar 2023 20:04:34 +0000
Subject: [PATCH] iio: adc: mcp3422: Add correct compatible strings
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
---
drivers/iio/adc/mcp3422.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
--- a/drivers/iio/adc/mcp3422.c
+++ b/drivers/iio/adc/mcp3422.c
@@ -407,7 +407,14 @@ static const struct i2c_device_id mcp342
MODULE_DEVICE_TABLE(i2c, mcp3422_id);
static const struct of_device_id mcp3422_of_match[] = {
- { .compatible = "mcp3422" },
+ { .compatible = "microchip,mcp3421" },
+ { .compatible = "microchip,mcp3422" },
+ { .compatible = "microchip,mcp3423" },
+ { .compatible = "microchip,mcp3424" },
+ { .compatible = "microchip,mcp3425" },
+ { .compatible = "microchip,mcp3426" },
+ { .compatible = "microchip,mcp3427" },
+ { .compatible = "microchip,mcp3428" },
{ }
};
MODULE_DEVICE_TABLE(of, mcp3422_of_match);