habanalabs: move common function out of debugfs.c
authorOded Gabbay <ogabbay@kernel.org>
Sun, 31 Jul 2022 06:10:24 +0000 (09:10 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Sun, 18 Sep 2022 10:29:51 +0000 (13:29 +0300)
commitab6c08f0d597408ce7ab4a0f92088cf7cefd2915
treeea91e4e271cbac7a59fe6da262436d1890c02454
parent7ca9022bd776d5a1c694ec0973e3d2e8671013c2
habanalabs: move common function out of debugfs.c

A common function that is called from multiple places can't be
located in degugfs.c because that file is only compiled if
debugfs is enabled in the kernel config file.

This can lead to undefined symbol compilation error.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/debugfs.c
drivers/misc/habanalabs/common/device.c