Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: adc: ep93xx: Add OF support

Prepare for EP93xx conversion to DT.

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Link: https://lore.kernel.org/r/20221223162636.6488-2-alexander.sverdlin@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Alexander Sverdlin and committed by
Jonathan Cameron
80cbddf5 08025a3b

+8
+8
drivers/iio/adc/ep93xx_adc.c
··· 21 21 #include <linux/module.h> 22 22 #include <linux/mutex.h> 23 23 #include <linux/platform_device.h> 24 + #include <linux/of.h> 24 25 25 26 /* 26 27 * This code could benefit from real HR Timers, but jiffy granularity would ··· 228 227 return 0; 229 228 } 230 229 230 + static const struct of_device_id ep93xx_adc_of_ids[] = { 231 + { .compatible = "cirrus,ep9301-adc" }, 232 + {} 233 + }; 234 + MODULE_DEVICE_TABLE(of, ep93xx_adc_of_ids); 235 + 231 236 static struct platform_driver ep93xx_adc_driver = { 232 237 .driver = { 233 238 .name = "ep93xx-adc", 239 + .of_match_table = ep93xx_adc_of_ids, 234 240 }, 235 241 .probe = ep93xx_adc_probe, 236 242 .remove = ep93xx_adc_remove,