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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]>
1 parent 80fcd1e commit 38b5a5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)