iio: st_lsm6dsx: Drop unneeded OF code

There is no need to have OF guard against ID table.
Drop it for good.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
Andy Shevchenko 2019-12-16 20:19:24 +02:00 committed by Jonathan Cameron
parent 07bf07e2cc
commit e3da430770
2 changed files with 2 additions and 4 deletions

View File

@ -12,7 +12,6 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/of.h>
#include <linux/regmap.h> #include <linux/regmap.h>
#include "st_lsm6dsx.h" #include "st_lsm6dsx.h"
@ -122,7 +121,7 @@ static struct i2c_driver st_lsm6dsx_driver = {
.driver = { .driver = {
.name = "st_lsm6dsx_i2c", .name = "st_lsm6dsx_i2c",
.pm = &st_lsm6dsx_pm_ops, .pm = &st_lsm6dsx_pm_ops,
.of_match_table = of_match_ptr(st_lsm6dsx_i2c_of_match), .of_match_table = st_lsm6dsx_i2c_of_match,
}, },
.probe = st_lsm6dsx_i2c_probe, .probe = st_lsm6dsx_i2c_probe,
.id_table = st_lsm6dsx_i2c_id_table, .id_table = st_lsm6dsx_i2c_id_table,

View File

@ -12,7 +12,6 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/spi/spi.h> #include <linux/spi/spi.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/of.h>
#include <linux/regmap.h> #include <linux/regmap.h>
#include "st_lsm6dsx.h" #include "st_lsm6dsx.h"
@ -122,7 +121,7 @@ static struct spi_driver st_lsm6dsx_driver = {
.driver = { .driver = {
.name = "st_lsm6dsx_spi", .name = "st_lsm6dsx_spi",
.pm = &st_lsm6dsx_pm_ops, .pm = &st_lsm6dsx_pm_ops,
.of_match_table = of_match_ptr(st_lsm6dsx_spi_of_match), .of_match_table = st_lsm6dsx_spi_of_match,
}, },
.probe = st_lsm6dsx_spi_probe, .probe = st_lsm6dsx_spi_probe,
.id_table = st_lsm6dsx_spi_id_table, .id_table = st_lsm6dsx_spi_id_table,