Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0138d32f authored by Colin Ian King's avatar Colin Ian King Committed by Herbert Xu
Browse files

Crypto: atmel-ecc: Make a couple of local functions static



Functions atmel_ecc_i2c_client_alloc and atmel_ecc_i2c_client_free are
local to the source and no not need to be in the global scope. Make
them static.

Cleans up sparse warnings:
symbol 'atmel_ecc_i2c_client_alloc' was not declared. Should it be static?
symbol 'atmel_ecc_i2c_client_free' was not declared. Should it be static?

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Acked-by: default avatarTudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 1ce5b2f3
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -492,7 +492,7 @@ static int atmel_ecdh_compute_shared_secret(struct kpp_request *req)
	return ret;
	return ret;
}
}


struct i2c_client *atmel_ecc_i2c_client_alloc(void)
static struct i2c_client *atmel_ecc_i2c_client_alloc(void)
{
{
	struct atmel_ecc_i2c_client_priv *i2c_priv, *min_i2c_priv = NULL;
	struct atmel_ecc_i2c_client_priv *i2c_priv, *min_i2c_priv = NULL;
	struct i2c_client *client = ERR_PTR(-ENODEV);
	struct i2c_client *client = ERR_PTR(-ENODEV);
@@ -527,7 +527,7 @@ struct i2c_client *atmel_ecc_i2c_client_alloc(void)
	return client;
	return client;
}
}


void atmel_ecc_i2c_client_free(struct i2c_client *client)
static void atmel_ecc_i2c_client_free(struct i2c_client *client)
{
{
	struct atmel_ecc_i2c_client_priv *i2c_priv = i2c_get_clientdata(client);
	struct atmel_ecc_i2c_client_priv *i2c_priv = i2c_get_clientdata(client);