aboutsummaryrefslogtreecommitdiff
path: root/drivers/char/hw_random/xiphera-trng.c
AgeCommit message (Collapse)AuthorFilesLines
2023-09-15hwrng: xiphera - removed unnneded platform_set_drvdata()Andrei Coardos1-2/+0
This function call was found to be unnecessary as there is no equivalent platform_get_drvdata() call to access the private data of the driver. Also, the private data is defined in this driver, so there is no risk of it being accessed outside of this driver file. Signed-off-by: Andrei Coardos <[email protected]> Reviewed-by: Alexandru Ardelean <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
2023-08-04hwrng: Explicitly include correct DT includesRob Herring1-1/+0
The DT of_device.h and of_platform.h date back to the separate of_platform_bus_type before it was merged into the regular platform bus. As part of that merge prepping Arm DT support 13 years ago, they "temporarily" include each other. They also include platform_device.h and of.h. As a result, there's a pretty much random mix of those include files used throughout the tree. In order to detangle these headers and replace the implicit includes with struct declarations, users need to explicitly include the correct includes. Signed-off-by: Rob Herring <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
2021-03-07hwrng: xiphera-trng - use devm_platform_ioremap_resource() to simplifyTian Tao1-3/+1
Use devm_platform_ioremap_resource() to simplify the code. Signed-off-by: Tian Tao <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
2020-09-11hwrng: xiphera-trng: add support for XIP8001B hwrngAtte Tommiska1-0/+150
Xiphera XIP8001B is an FPGA-based True Random Number Generator Intellectual Property (IP) Core which can be instantiated in multiple FPGA families. This driver adds Linux support for it through the hwrng interface. Signed-off-by: Atte Tommiska <[email protected]> Signed-off-by: Herbert Xu <[email protected]>