hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/char/hw_random/stm32-rng.c
....@@ -1,15 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (c) 2015, Daniel Thompson
3
- *
4
- * This file is free software; you can redistribute it and/or
5
- * modify it under the terms of the GNU General Public License
6
- * as published by the Free Software Foundation; either version 2
7
- * of the License, or (at your option) any later version.
8
- *
9
- * This file is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
134 */
145
156 #include <linux/clk.h>
....@@ -154,13 +145,14 @@
154145
155146 dev_set_drvdata(dev, priv);
156147
157
- priv->rng.name = dev_driver_string(dev),
148
+ priv->rng.name = dev_driver_string(dev);
158149 #ifndef CONFIG_PM
159
- priv->rng.init = stm32_rng_init,
160
- priv->rng.cleanup = stm32_rng_cleanup,
150
+ priv->rng.init = stm32_rng_init;
151
+ priv->rng.cleanup = stm32_rng_cleanup;
161152 #endif
162
- priv->rng.read = stm32_rng_read,
153
+ priv->rng.read = stm32_rng_read;
163154 priv->rng.priv = (unsigned long) dev;
155
+ priv->rng.quality = 900;
164156
165157 pm_runtime_set_autosuspend_delay(dev, 100);
166158 pm_runtime_use_autosuspend(dev);