From: Milo Kim Date: Thu, 8 Aug 2013 03:46:43 +0000 (+0900) Subject: leds: lp55xx: add common macros for device attributes X-Git-Tag: v3.12-rc1~32^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36030978f51b596c30188187ffcc8a436cce16f0;p=pandora-kernel.git leds: lp55xx: add common macros for device attributes This patch provides common macros for LP5521 and LP5523 device attributes and functions. (Device attributes) LP5521: 'mode', 'load' and 'selftest' LP5523: 'mode', 'load', 'leds' and 'selftest' (Permissions) mode: R/W load: Write-only leds: R/W selftest: Read-only Couple of lines are duplicate, so use these macros for adding device attributes in LP5521 and LP5523 drivers. Signed-off-by: Milo Kim Signed-off-by: Bryan Wu --- Reading git-diff-tree failed