leds: lp55xx: add common macros for device attributes
authorMilo Kim <milo.kim@ti.com>
Thu, 8 Aug 2013 03:46:43 +0000 (12:46 +0900)
committerBryan Wu <cooloney@gmail.com>
Tue, 27 Aug 2013 00:22:12 +0000 (17:22 -0700)
commit36030978f51b596c30188187ffcc8a436cce16f0
tree595dee4978abbd561405d48a16abcc77e3355460
parent6841a91dc5cfcb02b99413fa4199d9a8ce5ae770
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 <milo.kim@ti.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/leds-lp55xx-common.h