unifykey: add helper API so we can call unifykey APIs from drivers [4/5]
authorjiamin ma <jiamin.ma@amlogic.com>
Thu, 26 Apr 2018 06:59:00 +0000 (14:59 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Fri, 27 Apr 2018 09:10:10 +0000 (02:10 -0700)
commit7771f2cbe30e46f06a0af0f23340087b9d8df2bc
tree456ffe75d32b5644c6a28554e112c363684c40bf
parent9a016e699d6fd4ed1f3accaf9ad6fc4b0c0a20ab
unifykey: add helper API so we can call unifykey APIs from drivers [4/5]

PD#165222: crash if call unifykey APIs from other drivers

example to call unifykey APIs from kernel space:

  ret = key_unify_query(get_ukdev(), key_name, &key_exist, &keypermit);

Change-Id: I2e7f6cdad21c9faa4d95d0536b187ece485a5b46
Signed-off-by: jiamin ma <jiamin.ma@amlogic.com>
drivers/amlogic/unifykey/unifykey.c
include/linux/amlogic/unifykey/key_manage.h