Skip to contentSkip to conversation

virtio-rng: reinstate const to struct hwrng.name

PATCH Stephen Rothwell 1 participant 1 message May 15, 2014 Hardware random number generator core

lore
Share & tools
lore
#0 lore raw

This was removed by commit 08e53fbdb85c ("virtio-rng: support multiple virtio-rng devices") in the virtio tree and can now be restored.

---
 include/linux/hw_random.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/hw_random.h +1 -1
index 02d9c87be54c..b4b0eef5fddf 100644
@@ -31,7 +31,7 @@
  * @priv:		Private data, for use by the RNG driver.
  */
 struct hwrng {
-	char *name;
+	const char *name;
 	int (*init)(struct hwrng *rng);
 	void (*cleanup)(struct hwrng *rng);
 	int (*data_present)(struct hwrng *rng, int wait);
Signature · 5 lines
2.0.0.rc2

-- 
Cheers,
Stephen Rothwell                    [email protected]