Files
openwrt-master/target/linux/bcm27xx/patches-6.6/950-0415-iio-adc-mcp3422-Add-correct-compatible-strings.patch
domenico c06fb25d1f
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
Initial commit
2025-06-24 14:35:53 +02:00

29 lines
1008 B
Diff

From 2ec8ce198adbfd8fb74d04940f36b0d9f8b4b6ed Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.com>
Date: Mon, 6 Mar 2023 20:04:34 +0000
Subject: [PATCH 0415/1085] 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);