OSDN Git Service

habanalabs: fix endianness when reading cpld version
authorOfir Bitton <obitton@habana.ai>
Wed, 15 Dec 2021 12:48:27 +0000 (14:48 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Sun, 26 Dec 2021 06:59:09 +0000 (08:59 +0200)
commita7224c21161b3576cb6875ac86f5ba5e757e4fce
tree00ede69b0971099a07bf3556f92cec0836362a05
parentb9d31cada7d9f137028c11534fff77fec8511690
habanalabs: fix endianness when reading cpld version

Current sysfs implementation does not take endianness into
consideration when dumping the cpld version.

Signed-off-by: Ofir Bitton <obitton@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/sysfs.c