Skip to contentSkip to conversation

leds: lm3533: replace als attribute with als_channel and als_en

PATCH New Johan Hovold 1 participant 2 messages May 22, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 leds: lm3533: replace als attribute with als_channel and als_en

Replace the als attribute with two separate attributes for selecting ALS channel and enabling ALS-current-control mode.

This change is needed to reflect changes made to the ALS sub-driver which now uses 0-indexed current output channels (rather than 1-indexed ALS-mapper target sets).

---
 .../ABI/testing/sysfs-class-led-driver-lm3533      |   19 +++-
 drivers/leds/leds-lm3533.c                         |   98 +++++++++++++++-----
 2 files changed, 87 insertions(+), 30 deletions(-)
Documentation/ABI/testing/sysfs-class-led-driver-lm3533 +13 -6
index a9633fd..620ebb3 100644
@@ -1,13 +1,20 @@
-What:		/sys/class/leds/<led>/als
-Date:		April 2012
+What:		/sys/class/leds/<led>/als_channel
+Date:		May 2012
 KernelVersion:	3.5
 Contact:	Johan Hovold <[email protected]>
 Description:
-		Set the ALS-control mode (0, 2, 3), where
+		Set the ALS output channel to use as input in
+		ALS-current-control mode (1, 2), where
+
+		1 - out_current1
+		2 - out_current2
 
-		0 - disabled
-		2 - ALS-mapper 2
-		3 - ALS-mapper 3
+What:		/sys/class/leds/<led>/als_en
+Date:		May 2012
+KernelVersion:	3.5
+Contact:	Johan Hovold <[email protected]>
+Description:
+		Enable ALS-current-control mode (0, 1).
 
 What:		/sys/class/leds/<led>/falltime
 What:		/sys/class/leds/<led>/risetime
drivers/leds/leds-lm3533.c +74 -24

164 lines not on this page · raw message

Signature · 1 line
1.7.8.5
#1 lore raw

PATCH 2/2 backlight: lm3533: replace als attribute with als_channel and als_en

Replace the als attribute with two separate attributes for selecting ALS channel and enabling ALS-current-control mode.

This change is needed to reflect changes made to the ALS sub-driver which now uses 0-indexed current output channels (rather than 1-indexed ALS-mapper target sets).

---
 .../testing/sysfs-class-backlight-driver-lm3533    |   19 +++++---
 drivers/video/backlight/lm3533_bl.c                |   48 ++++++++++----------
 2 files changed, 37 insertions(+), 30 deletions(-)
Documentation/ABI/testing/sysfs-class-backlight-driver-lm3533 +13 -6
index ea91f71..77cf7ac 100644
@@ -1,13 +1,20 @@
-What:		/sys/class/backlight/<backlight>/als
-Date:		April 2012
+What:		/sys/class/backlight/<backlight>/als_channel
+Date:		May 2012
 KernelVersion:	3.5
 Contact:	Johan Hovold <[email protected]>
 Description:
-		Set the ALS-control mode (0..2), where
+		Get the ALS output channel used as input in
+		ALS-current-control mode (0, 1), where
+
+		0 - out_current0 (backlight 0)
+		1 - out_current1 (backlight 1)
 
-		0 - disabled
-		1 - ALS-mapper 1 (backlight 0)
-		2 - ALS-mapper 2 (backlight 1)
+What:		/sys/class/backlight/<backlight>/als_en
+Date:		May 2012
+KernelVersion:	3.5
+Contact:	Johan Hovold <[email protected]>
+Description:
+		Enable ALS-current-control mode (0, 1).
 
 What:		/sys/class/backlight/<backlight>/id
 Date:		April 2012
drivers/video/backlight/lm3533_bl.c +24 -24

99 lines not on this page · raw message

Signature · 1 line
1.7.8.5