Re: [PATCH v2 2/3] mmc: bcm2835: Drop pointer to mmc_host from bcm2835_host

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> Am 03.02.2019 um 09:27 schrieb Lukas Wunner <lukas@xxxxxxxxx>:
> 
> The BCM2835 MMC host driver uses a pointer to get from the private
> bcm2835_host structure to the generic mmc_host structure.  However the
> latter is always immediately preceding the former in memory, so compute
> its address with a subtraction (which is cheaper than a dereference) and
> drop the superfluous pointer.
> 
> No functional change intended.
> 
> Signed-off-by: Lukas Wunner <lukas@xxxxxxxxx>
> Cc: Frank Pavlic <f.pavlic@xxxxxxxxx>
> Cc: Alexander Graf <agraf@xxxxxxx>

Reviewed-by: Alexander Graf <agraf@xxxxxxx>

Alex




[Index of Archives]     [Linux Memonry Technology]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux