Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>

authored by

Sakari Ailus and committed by
Jacek Anaszewski
af2e658f 2bd6bf03

+2 -2
+1 -1
arch/arm/boot/dts/omap3-n950-n9.dtsi
··· 273 273 flash-timeout-us = <150000>; 274 274 flash-max-microamp = <320000>; 275 275 led-max-microamp = <60000>; 276 - peak-current-limit = <1750000>; 276 + ams,input-max-microamp = <1750000>; 277 277 }; 278 278 indicator { 279 279 led-max-microamp = <10000>;
+1 -1
drivers/leds/leds-as3645a.c
··· 534 534 of_property_read_u32(flash->flash_node, "voltage-reference", 535 535 &cfg->voltage_reference); 536 536 537 - of_property_read_u32(flash->flash_node, "peak-current-limit", 537 + of_property_read_u32(flash->flash_node, "ams,input-max-microamp", 538 538 &cfg->peak); 539 539 cfg->peak = AS_PEAK_mA_TO_REG(cfg->peak); 540 540