diff options
Diffstat (limited to 'include/linux/hwmon.h')
-rw-r--r-- | include/linux/hwmon.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/hwmon.h b/include/linux/hwmon.h index 99e0c1b0b5fb..7a8cc06a0d61 100644 --- a/include/linux/hwmon.h +++ b/include/linux/hwmon.h | |||
@@ -365,6 +365,14 @@ struct hwmon_channel_info { | |||
365 | const u32 *config; | 365 | const u32 *config; |
366 | }; | 366 | }; |
367 | 367 | ||
368 | #define HWMON_CHANNEL_INFO(stype, ...) \ | ||
369 | (&(struct hwmon_channel_info) { \ | ||
370 | .type = hwmon_##stype, \ | ||
371 | .config = (u32 []) { \ | ||
372 | __VA_ARGS__, 0 \ | ||
373 | } \ | ||
374 | }) | ||
375 | |||
368 | /** | 376 | /** |
369 | * Chip configuration | 377 | * Chip configuration |
370 | * @ops: Pointer to hwmon operations. | 378 | * @ops: Pointer to hwmon operations. |