hwrng: bcm2835 - Define a driver private context
Instead of making hwrng::priv host the base register address, define a driver private context, make it per platform device instance and pass it down the different functions. Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com> Reviewed-by: NEric Anholt <eric@anholt.net> Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
Showing
想要评论请 注册 或 登录