Home
last modified time | relevance | path

Searched refs:mcu_data (Results 1 – 1 of 1) sorted by relevance

/linux-5.19.10/drivers/hwmon/
Dnsa320-hwmon.c43 unsigned long mcu_data; member
70 u32 mcu_data; in nsa320_hwmon_update() local
76 mcu_data = hwmon->mcu_data; in nsa320_hwmon_update()
78 if (time_after(jiffies, hwmon->last_updated + HZ) || mcu_data == 0) { in nsa320_hwmon_update()
82 mcu_data = 0; in nsa320_hwmon_update()
89 mcu_data |= mask; in nsa320_hwmon_update()
93 dev_dbg(dev, "Read raw MCU data %08x\n", mcu_data); in nsa320_hwmon_update()
95 if ((mcu_data >> 24) != MAGIC_NUMBER) { in nsa320_hwmon_update()
96 dev_dbg(dev, "Read invalid MCU data %08x\n", mcu_data); in nsa320_hwmon_update()
97 mcu_data = -EIO; in nsa320_hwmon_update()
[all …]