From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751558AbdILSbr (ORCPT ); Tue, 12 Sep 2017 14:31:47 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:35270 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751305AbdILSbn (ORCPT ); Tue, 12 Sep 2017 14:31:43 -0400 X-Google-Smtp-Source: ADKCNb5+eh5MfUZz167u4QPNYOc9YimGWDeeCZ7IM5sztipGSDN22LKhWpvAURjurYF6Xsvj5hQSTg== Date: Wed, 13 Sep 2017 00:01:35 +0530 From: himanshi To: Lars-Peter Clausen Cc: Julia Lawall , Daniel Baluta , outreachy-kernel , "Hennerich, Michael" , Jonathan Cameron , Hartmut Knaack , Peter Meerwald , Greg Kroah-Hartman , "linux-iio@vger.kernel.org" , driverdev , Linux Kernel Mailing List , nick.desaulniers@gmail.com Subject: Re: [Outreachy kernel] [PATCH] Fixed IIO_DEVICE_ATTR_NAMED API to take name as a string and added "" around names Message-ID: <20170912183135.GA5329@himanshi-Inspiron-5558> References: <20170911224348.GA13259@himanshi-Inspiron-5558> <20170912180132.GB4607@himanshi-Inspiron-5558> <629315d5-6de4-4531-7f25-e1764b9a0513@metafoo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <629315d5-6de4-4531-7f25-e1764b9a0513@metafoo.de> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Okay. This way with each commit the version can compile and I will be able to define the subsystem appropriately. Thank you for the clarification Lars. On Tue, Sep 12, 2017 at 08:14:18PM +0200, Lars-Peter Clausen wrote: > On 09/12/2017 08:06 PM, Julia Lawall wrote: > > > > > > On Tue, 12 Sep 2017, himanshi wrote: > > > >> Thanks for the review Daniel! I will change the imperative mood for the commit > >> message once the other changes are finalised too and as suggested by Julia, > >> would try to make the description specific than general. > >> > >> I tried to think of adding subsystem to the commit subject but could not > >> conclude any because of the files involved. > >> I like the idea of splitting the patch into 2 as you suggested but I > >> have a doubt that adding the new MACROS to different sysfs files can be put into 1 > >> patch with the subsystem you mentioned but changing the existing > >> IIO_DEVICE_ATTR_NAMED to use IIO_ATTR_NAMED (sysfs file again) would be included > >> in the second patch if I am not wrong. So would it be fine to keep the > >> subsystem as iio for the second patch? > > > > Indeed, the kernel has to compile after every commit. Unless you change > > the name of the macro, to allow the old and new versions to co-exist, it > > seems hard to break up such a patch. > > We can still split things into two parts. One patch introducing __ATTR_NAMED > in the device driver core and then another patch making use of that macro in > the IIO subsystem.