Message ID | 20221105125108.383193-3-jic23@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | iio: mlx90632: Minor fixes | expand |
Acked-off-by: Crt Mori <cmo@melexis.com> On Sat, 5 Nov 2022 at 13:51, Jonathan Cameron <jic23@kernel.org> wrote: > > From: Jonathan Cameron <Jonathan.Cameron@huawei.com> > > Only used within this file, so should be marked static. > > Fixes: c83d3e5ca97f ("iio: temperature: mlx90632 Add runtime powermanagement modes") > Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> > --- > drivers/iio/temperature/mlx90632.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/iio/temperature/mlx90632.c b/drivers/iio/temperature/mlx90632.c > index 7572ae3f8432..f1f5ebc145b1 100644 > --- a/drivers/iio/temperature/mlx90632.c > +++ b/drivers/iio/temperature/mlx90632.c > @@ -1326,7 +1326,7 @@ static int mlx90632_pm_runtime_suspend(struct device *dev) > return mlx90632_pwr_set_sleep_step(data->regmap); > } > > -const struct dev_pm_ops mlx90632_pm_ops = { > +static const struct dev_pm_ops mlx90632_pm_ops = { > SYSTEM_SLEEP_PM_OPS(mlx90632_pm_suspend, mlx90632_pm_resume) > RUNTIME_PM_OPS(mlx90632_pm_runtime_suspend, NULL, NULL) > }; > -- > 2.38.1 >
diff --git a/drivers/iio/temperature/mlx90632.c b/drivers/iio/temperature/mlx90632.c index 7572ae3f8432..f1f5ebc145b1 100644 --- a/drivers/iio/temperature/mlx90632.c +++ b/drivers/iio/temperature/mlx90632.c @@ -1326,7 +1326,7 @@ static int mlx90632_pm_runtime_suspend(struct device *dev) return mlx90632_pwr_set_sleep_step(data->regmap); } -const struct dev_pm_ops mlx90632_pm_ops = { +static const struct dev_pm_ops mlx90632_pm_ops = { SYSTEM_SLEEP_PM_OPS(mlx90632_pm_suspend, mlx90632_pm_resume) RUNTIME_PM_OPS(mlx90632_pm_runtime_suspend, NULL, NULL) };