Skip to content
Commit 59df4f4e authored by Lucas Magasweran's avatar Lucas Magasweran Committed by Guenter Roeck
Browse files

hwmon: (core) check parent dev != NULL when chip != NULL



hwmon_device_register_with_info() registration API requires a
non-NULL parent device when chip is non-NULL.

This commit adds a check and documents this requirement.

Signed-off-by: default avatarLucas Magasweran <lucas.magasweran@ieee.org>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 2b2acdc8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment