From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: simplify configfs attributes V2 Date: Sat, 3 Oct 2015 15:32:36 +0200 Message-ID: <1443879179-22280-1-git-send-email-hch@lst.de> Cc: Felipe Balbi , Andrzej Pietrasiewicz , Tejun Heo , Pratyush Anand , Pantelis Antoniou , target-devel@vger.kernel.org, cluster-devel@redhat.com, ocfs2-devel@oss.oracle.com, linux-usb@vger.kernel.org, netdev@vger.kernel.org To: Joel Becker , Andrew Morton , Nicholas Bellinger Return-path: Sender: target-devel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org This series consolidates the code to implement configfs attributes by providing the ->show and ->store method in common code and using container_of in the methods to access the containing structure. This reduces source and binary size of configfs consumers a lot. Changes since V1: - a couple fixes for unintended changes in the uvc driver - moved a few CONFIG_ATTR() statements around - fixed up the documentation and samples in the last patch - added a little rather pointless blurb to the patch description for various patches From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Date: Sat, 3 Oct 2015 15:32:36 +0200 Subject: [Ocfs2-devel] simplify configfs attributes V2 Message-ID: <1443879179-22280-1-git-send-email-hch@lst.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Joel Becker , Andrew Morton , Nicholas Bellinger Cc: Felipe Balbi , Andrzej Pietrasiewicz , Tejun Heo , Pratyush Anand , Pantelis Antoniou , target-devel@vger.kernel.org, cluster-devel@redhat.com, ocfs2-devel@oss.oracle.com, linux-usb@vger.kernel.org, netdev@vger.kernel.org This series consolidates the code to implement configfs attributes by providing the ->show and ->store method in common code and using container_of in the methods to access the containing structure. This reduces source and binary size of configfs consumers a lot. Changes since V1: - a couple fixes for unintended changes in the uvc driver - moved a few CONFIG_ATTR() statements around - fixed up the documentation and samples in the last patch - added a little rather pointless blurb to the patch description for various patches From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Date: Sat, 3 Oct 2015 15:32:36 +0200 Subject: [Cluster-devel] simplify configfs attributes V2 Message-ID: <1443879179-22280-1-git-send-email-hch@lst.de> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit This series consolidates the code to implement configfs attributes by providing the ->show and ->store method in common code and using container_of in the methods to access the containing structure. This reduces source and binary size of configfs consumers a lot. Changes since V1: - a couple fixes for unintended changes in the uvc driver - moved a few CONFIG_ATTR() statements around - fixed up the documentation and samples in the last patch - added a little rather pointless blurb to the patch description for various patches