From: Bart Van Assche Date: Sat, 10 Sep 2011 14:31:57 +0000 (+0200) Subject: srp_transport: Simplify attribute initialization code X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~23^2~1^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9134a855178f141b9be48aa19b49ed92d82665ce;p=pandora-kernel.git srp_transport: Simplify attribute initialization code Eliminate the private_rport_attrs[] array and the SETUP_*() macros used to set up that array since the information in that array duplicates the information in the static device attributes. Also, verify whether SRP_RPORT_ATTRS is large enough since it is easy to forget to update that macro when adding new attributes. Signed-off-by: Bart Van Assche Cc: FUJITA Tomonori Cc: Robert Jennings Acked-by: David Dillow Signed-off-by: Roland Dreier --- Reading git-diff-tree failed