OSDN Git Service

as3645a: Use ams,input-max-microamp as documented in DT bindings
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 22 Sep 2017 09:32:35 +0000 (12:32 +0300)
committerJacek Anaszewski <jacek.anaszewski@gmail.com>
Sat, 23 Sep 2017 19:16:42 +0000 (21:16 +0200)
DT bindings document the property "ams,input-max-microamp" that limits the
chip's maximum input current. The driver and the DTS however used
"peak-current-limit" property. Fix this by using the property documented
in DT binding documentation.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
arch/arm/boot/dts/omap3-n950-n9.dtsi
drivers/leds/leds-as3645a.c

index cb47ae7..b86fc83 100644 (file)
                        flash-timeout-us = <150000>;
                        flash-max-microamp = <320000>;
                        led-max-microamp = <60000>;
-                       peak-current-limit = <1750000>;
+                       ams,input-max-microamp = <1750000>;
                };
                indicator {
                        led-max-microamp = <10000>;
index bbbbe08..e3f89c6 100644 (file)
@@ -534,7 +534,7 @@ static int as3645a_parse_node(struct as3645a *flash,
        of_property_read_u32(flash->flash_node, "voltage-reference",
                             &cfg->voltage_reference);
 
-       of_property_read_u32(flash->flash_node, "peak-current-limit",
+       of_property_read_u32(flash->flash_node, "ams,input-max-microamp",
                             &cfg->peak);
        cfg->peak = AS_PEAK_mA_TO_REG(cfg->peak);