From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-la0-f48.google.com (mail-la0-f48.google.com [209.85.215.48]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id AB19D2C0203 for ; Thu, 15 Aug 2013 04:56:30 +1000 (EST) Received: by mail-la0-f48.google.com with SMTP id er20so697358lab.35 for ; Wed, 14 Aug 2013 11:56:26 -0700 (PDT) Message-ID: <520BD2E3.9080606@cogentembedded.com> Date: Wed, 14 Aug 2013 22:56:35 +0400 From: Sergei Shtylyov MIME-Version: 1.0 To: Libo Chen Subject: Re: [PATCH RESEND 0/8] use platform_{get,set}_drvdata() References: <5208E20A.4010306@huawei.com> <520AFB3F.2090006@huawei.com> In-Reply-To: <520AFB3F.2090006@huawei.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Cc: Greg KH , netdev@vger.kernel.org, jg1.han@samsung.com, LKML , Li Zefan , vbordug@ru.mvista.com, linuxppc-dev@lists.ozlabs.org, David Miller List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 08/14/2013 07:36 AM, Libo Chen wrote: > We can use the wrapper functions platform_{get,set}_drvdata() instead of > dev_{get,set}_drvdata() with &pdev->dev, it is convenient for user. > > Also, unnecessary dev_set_drvdata() is removed, because the driver core > clears the driver data to NULL after device_release or on probe failure. Saying "also" in the changelog is usually a good sign that the patch should be split. WBR, Sergei From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933074Ab3HNS43 (ORCPT ); Wed, 14 Aug 2013 14:56:29 -0400 Received: from mail-la0-f47.google.com ([209.85.215.47]:39403 "EHLO mail-la0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933057Ab3HNS41 (ORCPT ); Wed, 14 Aug 2013 14:56:27 -0400 Message-ID: <520BD2E3.9080606@cogentembedded.com> Date: Wed, 14 Aug 2013 22:56:35 +0400 From: Sergei Shtylyov Organization: Cogent Embedded User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Libo Chen CC: David Miller , netdev@vger.kernel.org, LKML , Li Zefan , leoli@freescale.com, linuxppc-dev@lists.ozlabs.org, pantelis.antoniou@gmail.com, vbordug@ru.mvista.com, Greg KH , jg1.han@samsung.com Subject: Re: [PATCH RESEND 0/8] use platform_{get,set}_drvdata() References: <5208E20A.4010306@huawei.com> <520AFB3F.2090006@huawei.com> In-Reply-To: <520AFB3F.2090006@huawei.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/14/2013 07:36 AM, Libo Chen wrote: > We can use the wrapper functions platform_{get,set}_drvdata() instead of > dev_{get,set}_drvdata() with &pdev->dev, it is convenient for user. > > Also, unnecessary dev_set_drvdata() is removed, because the driver core > clears the driver data to NULL after device_release or on probe failure. Saying "also" in the changelog is usually a good sign that the patch should be split. WBR, Sergei