diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2024-03-13 11:56:23 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2024-03-15 08:07:39 +0100 |
commit | d151afa2a6d546c696596f8e29e3943d593b5eb7 (patch) | |
tree | 62ecce6e5a2e33353c40db794cb1ef1db0410928 /include/linux/hw_random.h | |
parent | c38ff416cbe1bab66d0018a164b60c1bb4dd23f3 (diff) | |
download | barebox-d151afa2a6d546c696596f8e29e3943d593b5eb7.tar.gz barebox-d151afa2a6d546c696596f8e29e3943d593b5eb7.tar.xz |
hw_random: add struct hwrng::priv member
A number of Linux hw_random drivers use container_of to arrive at the
driver private data, but some others use the priv member of struct
hwrng. A unsigned long worth of extra malloc space doesn't hurt, so add
the same member to barebox too.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20240313105631.686778-5-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux/hw_random.h')
-rw-r--r-- | include/linux/hw_random.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/hw_random.h b/include/linux/hw_random.h index 9143ba1f8d..4479428bc7 100644 --- a/include/linux/hw_random.h +++ b/include/linux/hw_random.h @@ -33,6 +33,7 @@ struct hwrng { struct cdev cdev; struct device *dev; void *buf; + unsigned long priv; }; /* Register a new Hardware Random Number Generator driver. */ |