]> www.infradead.org Git - users/jedix/linux-maple.git/commit
habanalabs: display card name as sensors header
authorOded Gabbay <oded.gabbay@gmail.com>
Fri, 30 Aug 2019 11:26:49 +0000 (14:26 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Thu, 5 Sep 2019 11:55:27 +0000 (14:55 +0300)
commit0996bd1c74d3c37ccbb78ea49ca0e9f58d640720
treea7d02dc31ab8d443a729eb5ce45f3af243c5d65f
parente9730763a21a5441d46511f124d703d76a5ef6e6
habanalabs: display card name as sensors header

To allow the user to use a custom file for the HWMON lm-sensors library
per card type, the driver needs to register the HWMON sensors with the
specific card type name.

The card name is supplied by the F/W running on the device. If the F/W is
old and doesn't supply a card name, a default card name is displayed as
the sensors group name.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Reviewed-by: Omer Shpigelman <oshpigelman@habana.ai>
drivers/misc/habanalabs/goya/goya.c
drivers/misc/habanalabs/goya/goyaP.h
drivers/misc/habanalabs/hwmon.c
drivers/misc/habanalabs/include/armcp_if.h