Re: [PATCH] char: hw_random: bcm2835-rng: removed call to platform_set_drvdata()

From: Alexandru Ardelean
Date: Thu Aug 24 2023 - 04:26:52 EST


On Wed, Aug 23, 2023 at 2:59 PM Martin Kaiser <lists@xxxxxxxxx> wrote:
>
> Andrei Coardos (aboutphysycs@xxxxxxxxx) wrote:
>
> > 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.
>
> You're right. The platform_get_drvdata call was removed in
> 4c04b3729 ("hwrng: bcm2835 - Use device managed helpers").
>

Reviewed-by: Alexandru Ardelean <alex@xxxxxxxxxxx>

> Reviewed-by: Martin Kaiser <martin@xxxxxxxxx>