mirror of
https://gitlab.com/manzerbredes/ina260-sysfs-driver.git
synced 2025-05-01 09:37:46 +00:00
Minor changes
This commit is contained in:
parent
bbdef98fc2
commit
edee197198
2 changed files with 15 additions and 2 deletions
4
ina260.c
4
ina260.c
|
@ -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, \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue