iio: proximity: ping: Replace OF specific code by device_get_match_data()
Instead of calling the OF specific API, use device_get_match_data(). Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20220413183421.20427-1-andriy.shevchenko@linux.intel.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
96a531799d
commit
87b7b07bf0
|
@ -29,9 +29,8 @@
|
|||
#include <linux/err.h>
|
||||
#include <linux/gpio/consumer.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/mod_devicetable.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/of.h>
|
||||
#include <linux/of_device.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/property.h>
|
||||
#include <linux/sched.h>
|
||||
|
@ -288,7 +287,7 @@ static int ping_probe(struct platform_device *pdev)
|
|||
|
||||
data = iio_priv(indio_dev);
|
||||
data->dev = dev;
|
||||
data->cfg = of_device_get_match_data(dev);
|
||||
data->cfg = device_get_match_data(dev);
|
||||
|
||||
mutex_init(&data->lock);
|
||||
init_completion(&data->rising);
|
||||
|
|
Loading…
Reference in New Issue