crypto: hisilicon/qm - add pci bdf number check
authorKai Ye <yekai13@huawei.com>
Sat, 22 Oct 2022 01:17:45 +0000 (01:17 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 28 Oct 2022 04:36:34 +0000 (12:36 +0800)
commit22d7a6c39cabab811f42cb2daed2343c87b0aca5
treeee7216f62e0a40b1dde2afbf89db15fd6e656bed
parent3efe90af4c0c46c58dba1b306de142827153d9c0
crypto: hisilicon/qm - add pci bdf number check

The pci bdf number check is added for qos written by using the pci api.
Directly get the devfn by pci_dev, so delete some redundant code.
And use the kstrtoul instead of sscanf to simplify code.

Signed-off-by: Kai Ye <yekai13@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c