Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 12dd7fe2 authored by Geliang Tang's avatar Geliang Tang Committed by Ulf Hansson
Browse files

mmc: cb710: use to_platform_device()



Use to_platform_device() instead of open-coding it.

Signed-off-by: default avatarGeliang Tang <geliangtang@163.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 1b84def8
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -29,8 +29,7 @@ static inline struct mmc_host *cb710_slot_to_mmc(struct cb710_slot *slot)


static inline struct cb710_slot *cb710_mmc_to_slot(struct mmc_host *mmc)
static inline struct cb710_slot *cb710_mmc_to_slot(struct mmc_host *mmc)
{
{
	struct platform_device *pdev = container_of(mmc_dev(mmc),
	struct platform_device *pdev = to_platform_device(mmc_dev(mmc));
		struct platform_device, dev);
	return cb710_pdev_to_slot(pdev);
	return cb710_pdev_to_slot(pdev);
}
}