Commit 80cbddf5 authored by Alexander Sverdlin's avatar Alexander Sverdlin Committed by Jonathan Cameron

iio: adc: ep93xx: Add OF support

Prepare for EP93xx conversion to DT.
Signed-off-by: default avatarAlexander Sverdlin <alexander.sverdlin@gmail.com>
Link: https://lore.kernel.org/r/20221223162636.6488-2-alexander.sverdlin@gmail.comSigned-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 08025a3b
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/of.h>
/* /*
* This code could benefit from real HR Timers, but jiffy granularity would * This code could benefit from real HR Timers, but jiffy granularity would
...@@ -227,9 +228,16 @@ static int ep93xx_adc_remove(struct platform_device *pdev) ...@@ -227,9 +228,16 @@ static int ep93xx_adc_remove(struct platform_device *pdev)
return 0; return 0;
} }
static const struct of_device_id ep93xx_adc_of_ids[] = {
{ .compatible = "cirrus,ep9301-adc" },
{}
};
MODULE_DEVICE_TABLE(of, ep93xx_adc_of_ids);
static struct platform_driver ep93xx_adc_driver = { static struct platform_driver ep93xx_adc_driver = {
.driver = { .driver = {
.name = "ep93xx-adc", .name = "ep93xx-adc",
.of_match_table = ep93xx_adc_of_ids,
}, },
.probe = ep93xx_adc_probe, .probe = ep93xx_adc_probe,
.remove = ep93xx_adc_remove, .remove = ep93xx_adc_remove,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment