Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit af2e658f authored by Sakari Ailus's avatar Sakari Ailus Committed by Jacek Anaszewski
Browse files

as3645a: Use ams,input-max-microamp as documented in DT bindings



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: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: default avatarPavel Machek <pavel@ucw.cz>
Signed-off-by: default avatarJacek Anaszewski <jacek.anaszewski@gmail.com>
parent 2bd6bf03
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -273,7 +273,7 @@
			flash-timeout-us = <150000>;
			flash-timeout-us = <150000>;
			flash-max-microamp = <320000>;
			flash-max-microamp = <320000>;
			led-max-microamp = <60000>;
			led-max-microamp = <60000>;
			peak-current-limit = <1750000>;
			ams,input-max-microamp = <1750000>;
		};
		};
		indicator {
		indicator {
			led-max-microamp = <10000>;
			led-max-microamp = <10000>;
+1 −1
Original line number Original line Diff line number Diff line
@@ -534,7 +534,7 @@ static int as3645a_parse_node(struct as3645a *flash,
	of_property_read_u32(flash->flash_node, "voltage-reference",
	of_property_read_u32(flash->flash_node, "voltage-reference",
			     &cfg->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);
	cfg->peak = AS_PEAK_mA_TO_REG(cfg->peak);
	cfg->peak = AS_PEAK_mA_TO_REG(cfg->peak);