hwmon.c (552c69b36ebd966186573b9c7a286b390935cce1) hwmon.c (59df4f4e8e0b9a0abb14ad5128d36d844c3e2689)
1/*
2 * hwmon.c - part of lm_sensors, Linux kernel modules for hardware monitoring
3 *
4 * This file defines the sysfs class "hwmon", for use by sensors drivers.
5 *
6 * Copyright (C) 2005 Mark M. Hoffman <mhoffman@lightlink.com>
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 684 unchanged lines hidden (view full) ---

693 const struct attribute_group **extra_groups)
694{
695 if (!name)
696 return ERR_PTR(-EINVAL);
697
698 if (chip && (!chip->ops || !chip->ops->is_visible || !chip->info))
699 return ERR_PTR(-EINVAL);
700
1/*
2 * hwmon.c - part of lm_sensors, Linux kernel modules for hardware monitoring
3 *
4 * This file defines the sysfs class "hwmon", for use by sensors drivers.
5 *
6 * Copyright (C) 2005 Mark M. Hoffman <mhoffman@lightlink.com>
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 684 unchanged lines hidden (view full) ---

693 const struct attribute_group **extra_groups)
694{
695 if (!name)
696 return ERR_PTR(-EINVAL);
697
698 if (chip && (!chip->ops || !chip->ops->is_visible || !chip->info))
699 return ERR_PTR(-EINVAL);
700
701 if (chip && !dev)
702 return ERR_PTR(-EINVAL);
703
701 return __hwmon_device_register(dev, name, drvdata, chip, extra_groups);
702}
703EXPORT_SYMBOL_GPL(hwmon_device_register_with_info);
704
705/**
706 * hwmon_device_register - register w/ hwmon
707 * @dev: the device to register
708 *

--- 191 unchanged lines hidden ---
704 return __hwmon_device_register(dev, name, drvdata, chip, extra_groups);
705}
706EXPORT_SYMBOL_GPL(hwmon_device_register_with_info);
707
708/**
709 * hwmon_device_register - register w/ hwmon
710 * @dev: the device to register
711 *

--- 191 unchanged lines hidden ---