Skip to content

Commit

Permalink
crypto: atmel - Drop unused id parameter from atmel_i2c_probe()
Browse files Browse the repository at this point in the history
id is unused in atmel_i2c_probe() and the callers have extra efforts to
determine the right parameter. So drop the parameter simplifying both
atmel_i2c_probe() and its callers.

Signed-off-by: Uwe Kleine-König <[email protected]>
Reviewed-by: Tudor Ambarus <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
Uwe Kleine-König authored and herbertx committed Feb 10, 2023
1 parent acc3f55 commit d58fa98
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions drivers/crypto/atmel-ecc.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,11 +313,10 @@ static struct kpp_alg atmel_ecdh_nist_p256 = {

static int atmel_ecc_probe(struct i2c_client *client)
{
const struct i2c_device_id *id = i2c_client_get_device_id(client);
struct atmel_i2c_client_priv *i2c_priv;
int ret;

ret = atmel_i2c_probe(client, id);
ret = atmel_i2c_probe(client);
if (ret)
return ret;

Expand Down
2 changes: 1 addition & 1 deletion drivers/crypto/atmel-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ static int device_sanity_check(struct i2c_client *client)
return ret;
}

int atmel_i2c_probe(struct i2c_client *client, const struct i2c_device_id *id)
int atmel_i2c_probe(struct i2c_client *client)
{
struct atmel_i2c_client_priv *i2c_priv;
struct device *dev = &client->dev;
Expand Down
2 changes: 1 addition & 1 deletion drivers/crypto/atmel-i2c.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ struct atmel_i2c_work_data {
struct atmel_i2c_cmd cmd;
};

int atmel_i2c_probe(struct i2c_client *client, const struct i2c_device_id *id);
int atmel_i2c_probe(struct i2c_client *client);

void atmel_i2c_enqueue(struct atmel_i2c_work_data *work_data,
void (*cbk)(struct atmel_i2c_work_data *work_data,
Expand Down
3 changes: 1 addition & 2 deletions drivers/crypto/atmel-sha204a.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,10 @@ static int atmel_sha204a_rng_read(struct hwrng *rng, void *data, size_t max,

static int atmel_sha204a_probe(struct i2c_client *client)
{
const struct i2c_device_id *id = i2c_client_get_device_id(client);
struct atmel_i2c_client_priv *i2c_priv;
int ret;

ret = atmel_i2c_probe(client, id);
ret = atmel_i2c_probe(client);
if (ret)
return ret;

Expand Down

0 comments on commit d58fa98

Please sign in to comment.