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