thermal/drivers/acerhdf: Make interval setting only at module load time
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 1 Mar 2023 20:14:45 +0000 (21:14 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 3 Mar 2023 19:45:03 +0000 (20:45 +0100)
commitcad450d19d5ee0cd182778835aa82f7cf2678eae
treeb7ccf88ca3cfbe8a419884b80c2f725d7190cea2
parent0cf321c85886a74981bff21323b4a097c395fabb
thermal/drivers/acerhdf: Make interval setting only at module load time

The thermal zone device structure is in the process of being private
to the thermal framework core code. This driver is directly accessing
and changing the monitoring polling rate.

After discussing with the maintainers of this driver, having the
polling interval at module loading time is enough for their purpose.

Change the code to take into account the interval when the module is
loaded but restrict the permissions so the value can not be changed
afterwards.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Peter Kaestle <peter@piie.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/platform/x86/acerhdf.c