Skip to content
  • Milo Kim's avatar
    leds: lp55xx: add common macros for device attributes · 36030978
    Milo Kim authored
    
    
    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: default avatarMilo Kim <milo.kim@ti.com>
    Signed-off-by: default avatarBryan Wu <cooloney@gmail.com>
    36030978