[PATCH v2 2/2] hwrng: stm32 - cache device pointer in struct stm32_rng_private

Marek Vasut marex at denx.de
Fri May 31 03:04:06 PDT 2024


On 5/31/24 7:06 AM, Herbert Xu wrote:
> On Thu, May 16, 2024 at 09:37:41PM +0200, Marek Vasut wrote:
>> Place device pointer in struct stm32_rng_private and use it all over the
>> place to get rid of the horrible type casts throughout the driver.
>>
>> No functional change.
>>
>> Acked-by: Gatien Chevallier <gatien.chevallier at foss.st.com>
>> Signed-off-by: Marek Vasut <marex at denx.de>
> 
> I think you should remove the assignment of rng.priv too as nothing
> should use it anymore after your patch.

Fixed in V3, thanks.



More information about the linux-arm-kernel mailing list