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:
Suman Kumar Chakraborty 2025-04-30 12:34:49 +01:00 committed by Herbert Xu
parent 61e152873a
commit 7db5572645
2 changed files with 6 additions and 3 deletions

View File

@ -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;

View File

@ -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