Minor changes

This commit is contained in:
Loic Guegan 2023-08-14 12:24:03 +02:00
parent bbdef98fc2
commit edee197198
2 changed files with 15 additions and 2 deletions

View file

@ -49,6 +49,10 @@ static ssize_t _attr##_store(struct device *dev, struct device_attribute *attr,
return count; \
}
/**
* @brief This macro is not available on old kernel especially the one
* used by Beaglebones Single Board Computers
*/
#define HWMON_CHANNEL_INFO(stype, ...) \
(&(struct hwmon_channel_info) { \
.type = hwmon_##stype, \