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:
parent
80fcd1e7f5
commit
38b5a5acab
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue