mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-04 16:26:41 +07:00
iio:adc:ltc2497 drop of_match_ptr protection
This prevents the driver being used with ACPI PRP0001 based bindings. Also switch include to mod_devicetable.h which devices the used id structure. Note this is most about removing something I don't want want cut and paste into new driver rather than any thought that this particular driver will be used in an ACPI system (though it might!) Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Cc: Michael Hennerich <michael.hennerich@analog.com> Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
This commit is contained in:
parent
29788fd607
commit
0a9a500acd
@ -11,7 +11,7 @@
|
|||||||
#include <linux/iio/iio.h>
|
#include <linux/iio/iio.h>
|
||||||
#include <linux/iio/driver.h>
|
#include <linux/iio/driver.h>
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/of.h>
|
#include <linux/mod_devicetable.h>
|
||||||
|
|
||||||
#include "ltc2497.h"
|
#include "ltc2497.h"
|
||||||
|
|
||||||
@ -98,7 +98,7 @@ MODULE_DEVICE_TABLE(of, ltc2497_of_match);
|
|||||||
static struct i2c_driver ltc2497_driver = {
|
static struct i2c_driver ltc2497_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "ltc2497",
|
.name = "ltc2497",
|
||||||
.of_match_table = of_match_ptr(ltc2497_of_match),
|
.of_match_table = ltc2497_of_match,
|
||||||
},
|
},
|
||||||
.probe = ltc2497_probe,
|
.probe = ltc2497_probe,
|
||||||
.remove = ltc2497_remove,
|
.remove = ltc2497_remove,
|
||||||
|
Loading…
Reference in New Issue
Block a user