hwmon: (lm90) Use to_delayed_work()

Use to_delayed_work() instead of open-coding it.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Link: https://lore.kernel.org/r/20250414074739.3954203-1-nichen@iscas.ac.cn
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
Chen Ni 2025-04-14 15:47:39 +08:00 committed by Guenter Roeck
parent 80fcd1e7f5
commit 38b5a5acab
1 changed files with 1 additions and 1 deletions

View File

@ -1235,7 +1235,7 @@ static int lm90_update_alarms(struct lm90_data *data, bool force)
static void lm90_alert_work(struct work_struct *__work) static void lm90_alert_work(struct work_struct *__work)
{ {
struct delayed_work *delayed_work = container_of(__work, struct delayed_work, work); struct delayed_work *delayed_work = to_delayed_work(__work);
struct lm90_data *data = container_of(delayed_work, struct lm90_data, alert_work); struct lm90_data *data = container_of(delayed_work, struct lm90_data, alert_work);
/* Nothing to do if alerts are enabled */ /* Nothing to do if alerts are enabled */