Skip to content

Commit 0d0e538

Browse files
Javier Martinez Canillasjic23
authored andcommitted
iio: adc: mcp320x: Add compatible with vendor prefix to OF table
The driver Device Tree binding now documents compatible strings that have a vendor prefix, so add these to the OF device ID table to match and mark the old ones as deprecated explaining that should not be used anymore. Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Acked-by: Michael Welling <mwelling@ieee.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
1 parent 3a87213 commit 0d0e538

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

drivers/iio/adc/mcp320x.c

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ static int mcp320x_remove(struct spi_device *spi)
354354

355355
#if defined(CONFIG_OF)
356356
static const struct of_device_id mcp320x_dt_ids[] = {
357+
/* NOTE: The use of compatibles with no vendor prefix is deprecated. */
357358
{
358359
.compatible = "mcp3001",
359360
.data = &mcp320x_chip_infos[mcp3001],
@@ -381,6 +382,33 @@ static const struct of_device_id mcp320x_dt_ids[] = {
381382
}, {
382383
.compatible = "mcp3301",
383384
.data = &mcp320x_chip_infos[mcp3301],
385+
}, {
386+
.compatible = "microchip,mcp3001",
387+
.data = &mcp320x_chip_infos[mcp3001],
388+
}, {
389+
.compatible = "microchip,mcp3002",
390+
.data = &mcp320x_chip_infos[mcp3002],
391+
}, {
392+
.compatible = "microchip,mcp3004",
393+
.data = &mcp320x_chip_infos[mcp3004],
394+
}, {
395+
.compatible = "microchip,mcp3008",
396+
.data = &mcp320x_chip_infos[mcp3008],
397+
}, {
398+
.compatible = "microchip,mcp3201",
399+
.data = &mcp320x_chip_infos[mcp3201],
400+
}, {
401+
.compatible = "microchip,mcp3202",
402+
.data = &mcp320x_chip_infos[mcp3202],
403+
}, {
404+
.compatible = "microchip,mcp3204",
405+
.data = &mcp320x_chip_infos[mcp3204],
406+
}, {
407+
.compatible = "microchip,mcp3208",
408+
.data = &mcp320x_chip_infos[mcp3208],
409+
}, {
410+
.compatible = "microchip,mcp3301",
411+
.data = &mcp320x_chip_infos[mcp3301],
384412
}, {
385413
}
386414
};

0 commit comments

Comments
 (0)