summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/pmbus/max34440.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2024-06-07 15:32:04 +0200
committerGuenter Roeck <linux@roeck-us.net>2024-06-11 16:25:03 +0200
commit138d45d96758db803b50761297f3331c9170bc87 (patch)
treeb64b32e9c0c7c91808abcf53657cf7f8d73d5508 /drivers/hwmon/pmbus/max34440.c
parenthwmon: (asus-ec-sensors) add ProArt X670E-CREATOR WIFI (diff)
downloadlinux-138d45d96758db803b50761297f3331c9170bc87.tar.xz
linux-138d45d96758db803b50761297f3331c9170bc87.zip
hwmon: (pmbus/max31827) Explain why enum chips must not start with 0
If a driver calls device_get_match_data(), the .data pointer in its id data structures must not be NULL/0 because device_get_match_data() returns NULL if an entry is not found. Explain that in a comment to avoid confusion why this is required in this driver but not in other drivers. Cc: Daniel Matyas <daniel.matyas@analog.com> Acked-by: Nuno Sa <nuno.sa@analog.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/pmbus/max34440.c')
0 files changed, 0 insertions, 0 deletions