-
Yi-Wei Wang authored
The hardware monitors of the f75308 series provide temperature readings, voltage readings, rpm readings, and pwm readings / writings. As we have f75308ar on Tegra234 Hope devkit, this change integrates the driver shared by FINTEK into the source tree so that we can make device tree configuration as well as sysfs nodes access. In addition to the driver shared by FINTEK, the following fixes are included: - correct the chip id and the associated variable naming - update the return value before going to label - remove unnecessary header files - correct the hexadecimal value in set_fan_type and set_fan_mode - add support for pwm read / write - replace deprecated hwmon_device_register with devm_hwmon_device_register_with_groups - remove sysfs_create_group / sysfs_remove_group as the required sysfs nodes are populated by hwmon subsystem - destroy the mutex on error and driver removal - clean up the macros - replace the pr_* print with dev_* print and adjust the level - update the license to GPL v2 - replace permission flag S_IRUGO with octal representation Bug 3854473 Signed-off-by:
Yi-Wei Wang <yiweiw@nvidia.com> Change-Id: Ifbb5dcf22eaccac0831b2cb3642d40c9bd2aa5af Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2833113 (cherry picked from commit 55751cdc) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2860390 Reviewed-by:
svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by:
Bibek Basu <bbasu@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Yi-Wei Wang authoredThe hardware monitors of the f75308 series provide temperature readings, voltage readings, rpm readings, and pwm readings / writings. As we have f75308ar on Tegra234 Hope devkit, this change integrates the driver shared by FINTEK into the source tree so that we can make device tree configuration as well as sysfs nodes access. In addition to the driver shared by FINTEK, the following fixes are included: - correct the chip id and the associated variable naming - update the return value before going to label - remove unnecessary header files - correct the hexadecimal value in set_fan_type and set_fan_mode - add support for pwm read / write - replace deprecated hwmon_device_register with devm_hwmon_device_register_with_groups - remove sysfs_create_group / sysfs_remove_group as the required sysfs nodes are populated by hwmon subsystem - destroy the mutex on error and driver removal - clean up the macros - replace the pr_* print with dev_* print and adjust the level - update the license to GPL v2 - replace permission flag S_IRUGO with octal representation Bug 3854473 Signed-off-by:
Yi-Wei Wang <yiweiw@nvidia.com> Change-Id: Ifbb5dcf22eaccac0831b2cb3642d40c9bd2aa5af Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2833113 (cherry picked from commit 55751cdc) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2860390 Reviewed-by:
svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by:
Bibek Basu <bbasu@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Loading