Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto: atmel - Drop unused id parameter from atmel_i2c_probe()

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 <u.kleine-koenig@pengutronix.de>
Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Uwe Kleine-König and committed by
Herbert Xu
d58fa987 acc3f550

+4 -6
+1 -2
drivers/crypto/atmel-ecc.c
··· 313 313 314 314 static int atmel_ecc_probe(struct i2c_client *client) 315 315 { 316 - const struct i2c_device_id *id = i2c_client_get_device_id(client); 317 316 struct atmel_i2c_client_priv *i2c_priv; 318 317 int ret; 319 318 320 - ret = atmel_i2c_probe(client, id); 319 + ret = atmel_i2c_probe(client); 321 320 if (ret) 322 321 return ret; 323 322
+1 -1
drivers/crypto/atmel-i2c.c
··· 324 324 return ret; 325 325 } 326 326 327 - int atmel_i2c_probe(struct i2c_client *client, const struct i2c_device_id *id) 327 + int atmel_i2c_probe(struct i2c_client *client) 328 328 { 329 329 struct atmel_i2c_client_priv *i2c_priv; 330 330 struct device *dev = &client->dev;
+1 -1
drivers/crypto/atmel-i2c.h
··· 167 167 struct atmel_i2c_cmd cmd; 168 168 }; 169 169 170 - int atmel_i2c_probe(struct i2c_client *client, const struct i2c_device_id *id); 170 + int atmel_i2c_probe(struct i2c_client *client); 171 171 172 172 void atmel_i2c_enqueue(struct atmel_i2c_work_data *work_data, 173 173 void (*cbk)(struct atmel_i2c_work_data *work_data,
+1 -2
drivers/crypto/atmel-sha204a.c
··· 93 93 94 94 static int atmel_sha204a_probe(struct i2c_client *client) 95 95 { 96 - const struct i2c_device_id *id = i2c_client_get_device_id(client); 97 96 struct atmel_i2c_client_priv *i2c_priv; 98 97 int ret; 99 98 100 - ret = atmel_i2c_probe(client, id); 99 + ret = atmel_i2c_probe(client); 101 100 if (ret) 102 101 return ret; 103 102