From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: simplify configfs attributes Date: Fri, 25 Sep 2015 06:49:37 -0700 Message-ID: <1443189000-13398-1-git-send-email-hch@lst.de> Cc: linux-usb@vger.kernel.org, netdev@vger.kernel.org, Pratyush Anand , Felipe Balbi , cluster-devel@redhat.com, target-devel@vger.kernel.org, Tejun Heo , ocfs2-devel@oss.oracle.com To: Joel Becker , Andrew Morton Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: cluster-devel-bounces@redhat.com Errors-To: cluster-devel-bounces@redhat.com 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.