]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
crypto: atmel-sha204a - Drop of_device_id data
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Wed, 20 May 2026 07:01:28 +0000 (09:01 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 29 May 2026 05:55:58 +0000 (13:55 +0800)
The driver binds to i2c devices only and thus in the absence of an
assignment for .data in the of_device_id array i2c_get_match_data()
falls back to .driver_data from the i2c_device_id array. So only provide
&atsha204_quality once to reduce duplication.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-sha204a.c

index 12eb85b573802edf02e5958ffb401878bff3fe86..a51e1f1e008848e96fa9d3eb8aac5266b05288e2 100644 (file)
@@ -209,8 +209,8 @@ static void atmel_sha204a_remove(struct i2c_client *client)
 }
 
 static const struct of_device_id atmel_sha204a_dt_ids[] = {
-       { .compatible = "atmel,atsha204", .data = &atsha204_quality },
-       { .compatible = "atmel,atsha204a", },
+       { .compatible = "atmel,atsha204" },
+       { .compatible = "atmel,atsha204a" },
        { }
 };
 MODULE_DEVICE_TABLE(of, atmel_sha204a_dt_ids);