Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752264AbbL1N3y (ORCPT ); Mon, 28 Dec 2015 08:29:54 -0500 Received: from mail-yk0-f171.google.com ([209.85.160.171]:34466 "EHLO mail-yk0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752179AbbL1N3u (ORCPT ); Mon, 28 Dec 2015 08:29:50 -0500 MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 28 Dec 2015 14:29:48 +0100 Message-ID: Subject: Re: [PATCH 05/10] mmc: cb710: use to_platform_device() From: Ulf Hansson To: Geliang Tang Cc: =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , linux-mmc , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1186 Lines: 37 On 27 December 2015 at 14:15, Geliang Tang wrote: > Use to_platform_device() instead of open-coding it. > > Signed-off-by: Geliang Tang Thanks, applied for next! Kind regards Uffe > --- > drivers/mmc/host/cb710-mmc.h | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/mmc/host/cb710-mmc.h b/drivers/mmc/host/cb710-mmc.h > index 8984ec8..8ecd9e5 100644 > --- a/drivers/mmc/host/cb710-mmc.h > +++ b/drivers/mmc/host/cb710-mmc.h > @@ -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) > { > - struct platform_device *pdev = container_of(mmc_dev(mmc), > - struct platform_device, dev); > + struct platform_device *pdev = to_platform_device(mmc_dev(mmc)); > return cb710_pdev_to_slot(pdev); > } > > -- > 2.5.0 > > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/