habanalabs: re-factor memory module code
authorOmer Shpigelman <oshpigelman@habana.ai>
Mon, 12 Aug 2019 08:48:46 +0000 (11:48 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Thu, 21 Nov 2019 09:35:46 +0000 (11:35 +0200)
commit7f74d4d335f1bdcb51fca584d5ad065c4ff996ac
treef5ad2779ebe77b7a70ba694b840cd9d7838a596e
parent5d1012576d20dd7cb70e00ea1b4c2af11a6c9156
habanalabs: re-factor memory module code

Some of the functions in the memory module code were too long and/or
contained multiple operations that are not always done together. Re-factor
the code by dividing those functions to smaller functions which are more
readable and maintainable.

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