Commit 45be45d7 authored by Pieter De Gendt's avatar Pieter De Gendt Committed by Benjamin Cabé
Browse files

drivers: crypto: Place API into iterable section

Add wrapper DEVICE_API macro to all crypto_driver_api instances.

Signed-off-by: default avatarPieter De Gendt <pieter.degendt@basalte.be>
parent 3775e197
Loading
Loading
Loading
Loading
+1 −1
Changes for drivers/crypto/crypto_ataes132a.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -875,7 +875,7 @@ static const struct ataes132a_device_config ataes132a_config = {
	.i2c = I2C_DT_SPEC_INST_GET(0),
};

static struct crypto_driver_api crypto_enc_funcs = {
static DEVICE_API(crypto, crypto_enc_funcs) = {
	.cipher_begin_session = ataes132a_session_setup,
	.cipher_free_session = ataes132a_session_free,
	.cipher_async_callback_set = NULL,
+1 −1
Changes for drivers/crypto/crypto_intel_sha.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -325,7 +325,7 @@ static int intel_sha_device_hw_caps(const struct device *dev)
	return (CAP_SEPARATE_IO_BUFS | CAP_SYNC_OPS);
}

static struct crypto_driver_api hash_enc_funcs = {
static DEVICE_API(crypto, hash_enc_funcs) = {
	.hash_begin_session = intel_sha_device_set_hash_type,
	.hash_free_session = intel_sha_device_free,
	.hash_async_callback_set = NULL,
+1 −1
Changes for drivers/crypto/crypto_it8xxx2_sha.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -215,7 +215,7 @@ static int it8xxx2_sha_init(const struct device *dev)
	return 0;
}

static const struct crypto_driver_api it8xxx2_crypto_api = {
static DEVICE_API(crypto, it8xxx2_crypto_api) = {
	.hash_begin_session = it8xxx2_hash_begin_session,
	.hash_free_session = it8xxx2_hash_session_free,
	.query_hw_caps = it8xxx2_query_hw_caps,
+1 −1
Changes for drivers/crypto/crypto_it8xxx2_sha_v2.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -340,7 +340,7 @@ static int it8xxx2_sha_init(const struct device *dev)
	return 0;
}

static const struct crypto_driver_api it8xxx2_crypto_api = {
static DEVICE_API(crypto, it8xxx2_crypto_api) = {
	.hash_begin_session = it8xxx2_hash_begin_session,
	.hash_free_session = it8xxx2_hash_session_free,
	.query_hw_caps = it8xxx2_query_hw_caps,
+1 −1
Changes for drivers/crypto/crypto_mchp_xec_symcr.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -514,7 +514,7 @@ static int xec_symcr_init(const struct device *dev)
	return ret;
}

static const struct crypto_driver_api xec_symcr_api = {
static DEVICE_API(crypto, xec_symcr_api) = {
	.query_hw_caps = xec_symcr_query_hw_caps,
	.hash_begin_session = xec_symcr_hash_session_begin,
	.hash_free_session = xec_symcr_hash_session_free,
Loading