mirror of
https://github.com/torvalds/linux.git
synced 2026-05-21 13:27:57 +02:00
crypto: qat - expose configuration functions
The functions related to compression and crypto configurations were previously declared static, restricting the visibility to the defining source file. Remove the static qualifier, allowing it to be used in other files as needed. This is necessary for sharing this configuration functions with other QAT generations. Signed-off-by: Suman Kumar Chakraborty <suman.kumar.chakraborty@intel.com> Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
61e152873a
commit
7db5572645
|
|
@ -11,7 +11,7 @@
|
|||
#include "qat_compression.h"
|
||||
#include "qat_crypto.h"
|
||||
|
||||
static int adf_crypto_dev_config(struct adf_accel_dev *accel_dev)
|
||||
int adf_crypto_dev_config(struct adf_accel_dev *accel_dev)
|
||||
{
|
||||
char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES];
|
||||
int banks = GET_MAX_BANKS(accel_dev);
|
||||
|
|
@ -117,7 +117,7 @@ static int adf_crypto_dev_config(struct adf_accel_dev *accel_dev)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int adf_comp_dev_config(struct adf_accel_dev *accel_dev)
|
||||
int adf_comp_dev_config(struct adf_accel_dev *accel_dev)
|
||||
{
|
||||
char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES];
|
||||
int banks = GET_MAX_BANKS(accel_dev);
|
||||
|
|
@ -187,7 +187,7 @@ static int adf_comp_dev_config(struct adf_accel_dev *accel_dev)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int adf_no_dev_config(struct adf_accel_dev *accel_dev)
|
||||
int adf_no_dev_config(struct adf_accel_dev *accel_dev)
|
||||
{
|
||||
unsigned long val;
|
||||
int ret;
|
||||
|
|
|
|||
|
|
@ -7,5 +7,8 @@
|
|||
|
||||
int adf_gen4_dev_config(struct adf_accel_dev *accel_dev);
|
||||
int adf_gen4_cfg_dev_init(struct adf_accel_dev *accel_dev);
|
||||
int adf_crypto_dev_config(struct adf_accel_dev *accel_dev);
|
||||
int adf_comp_dev_config(struct adf_accel_dev *accel_dev);
|
||||
int adf_no_dev_config(struct adf_accel_dev *accel_dev);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user