mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
hwmon: Introduce hwmon_device_register_for_thermal
The thermal subsystem registers a hwmon driver without providing chip or sysfs group information. This is for legacy reasons and would be difficult to change. At the same time, we want to enforce that chip information is provided when registering a hwmon device using hwmon_device_register_with_info(). To enable this, introduce a special API for use only by the thermal subsystem. Acked-by: Rafael J . Wysocki <rafael@kernel.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
59e746ca86
commit
e5d2107205
2 changed files with 28 additions and 0 deletions
|
@ -450,6 +450,9 @@ hwmon_device_register_with_info(struct device *dev,
|
|||
const struct hwmon_chip_info *info,
|
||||
const struct attribute_group **extra_groups);
|
||||
struct device *
|
||||
hwmon_device_register_for_thermal(struct device *dev, const char *name,
|
||||
void *drvdata);
|
||||
struct device *
|
||||
devm_hwmon_device_register_with_info(struct device *dev,
|
||||
const char *name, void *drvdata,
|
||||
const struct hwmon_chip_info *info,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue