diff options
Diffstat (limited to 'kernel/drivers/misc/lis3lv02d')
-rw-r--r-- | kernel/drivers/misc/lis3lv02d/lis3lv02d.c | 2 | ||||
-rw-r--r-- | kernel/drivers/misc/lis3lv02d/lis3lv02d_i2c.c | 1 | ||||
-rw-r--r-- | kernel/drivers/misc/lis3lv02d/lis3lv02d_spi.c | 1 |
3 files changed, 1 insertions, 3 deletions
diff --git a/kernel/drivers/misc/lis3lv02d/lis3lv02d.c b/kernel/drivers/misc/lis3lv02d/lis3lv02d.c index 4739689d2..fb8705fc3 100644 --- a/kernel/drivers/misc/lis3lv02d/lis3lv02d.c +++ b/kernel/drivers/misc/lis3lv02d/lis3lv02d.c @@ -115,7 +115,7 @@ static int param_set_axis(const char *val, const struct kernel_param *kp) return ret; } -static struct kernel_param_ops param_ops_axis = { +static const struct kernel_param_ops param_ops_axis = { .set = param_set_axis, .get = param_get_int, }; diff --git a/kernel/drivers/misc/lis3lv02d/lis3lv02d_i2c.c b/kernel/drivers/misc/lis3lv02d/lis3lv02d_i2c.c index e3e7f1dc2..0c3bb7e3e 100644 --- a/kernel/drivers/misc/lis3lv02d/lis3lv02d_i2c.c +++ b/kernel/drivers/misc/lis3lv02d/lis3lv02d_i2c.c @@ -274,7 +274,6 @@ static const struct dev_pm_ops lis3_pm_ops = { static struct i2c_driver lis3lv02d_i2c_driver = { .driver = { .name = DRV_NAME, - .owner = THIS_MODULE, .pm = &lis3_pm_ops, .of_match_table = of_match_ptr(lis3lv02d_i2c_dt_ids), }, diff --git a/kernel/drivers/misc/lis3lv02d/lis3lv02d_spi.c b/kernel/drivers/misc/lis3lv02d/lis3lv02d_spi.c index b2f6e1651..e57547512 100644 --- a/kernel/drivers/misc/lis3lv02d/lis3lv02d_spi.c +++ b/kernel/drivers/misc/lis3lv02d/lis3lv02d_spi.c @@ -138,7 +138,6 @@ static SIMPLE_DEV_PM_OPS(lis3lv02d_spi_pm, lis3lv02d_spi_suspend, static struct spi_driver lis302dl_spi_driver = { .driver = { .name = DRV_NAME, - .owner = THIS_MODULE, .pm = &lis3lv02d_spi_pm, .of_match_table = of_match_ptr(lis302dl_spi_dt_ids), }, |