Commit 38b5a5ac authored by Chen Ni's avatar Chen Ni Committed by Guenter Roeck
Browse files

hwmon: (lm90) Use to_delayed_work()



Use to_delayed_work() instead of open-coding it.

Signed-off-by: default avatarChen Ni <nichen@iscas.ac.cn>
Link: https://lore.kernel.org/r/20250414074739.3954203-1-nichen@iscas.ac.cn


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 80fcd1e7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1235,7 +1235,7 @@ static int lm90_update_alarms(struct lm90_data *data, bool force)

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);

	/* Nothing to do if alerts are enabled */