Skip to content

Commit 38b5a5a

Browse files
Chen Nigroeck
authored andcommitted
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>
1 parent 80fcd1e commit 38b5a5a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/hwmon/lm90.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1235,7 +1235,7 @@ static int lm90_update_alarms(struct lm90_data *data, bool force)
12351235

12361236
static void lm90_alert_work(struct work_struct *__work)
12371237
{
1238-
struct delayed_work *delayed_work = container_of(__work, struct delayed_work, work);
1238+
struct delayed_work *delayed_work = to_delayed_work(__work);
12391239
struct lm90_data *data = container_of(delayed_work, struct lm90_data, alert_work);
12401240

12411241
/* Nothing to do if alerts are enabled */

0 commit comments

Comments
 (0)