01 Oct, 2020
1 commit
-
Fix warnings for undefined parameters when W=1 is used.
Signed-off-by: Dan Murphy
Reviewed-by: Marek Behún
Signed-off-by: Pavel Machek
27 Sep, 2020
2 commits
-
Do the parsing of `linux,default-trigger` DT property to LED core.
Currently it is done in many different drivers and the code is repeated.This patch removes the parsing from 23 drivers:
an30259a, aw2013, bcm6328, bcm6358, cr0014114, el15203000, gpio,
is31fl32xx, lm3532, lm36274, lm3692x, lm3697, lp50xx, lp8860, lt3593,
max77650, mt6323, ns2, pm8058, pwm, syscon, tlc591xx and turris-omnia.There is one driver in drivers/input which parses this property on it's
own. I shall send a separate patch there after this is applied.There are still 8 drivers that parse this property on their own because
they do not pass the led_init_data structure to the registering
function. I will try to refactor those in the future.Signed-off-by: Marek Behún
Signed-off-by: Pavel Machek -
This driver uses extended LED registration, so we do not need to parse
the `label` DT property on our own.Signed-off-by: Marek Behún
Signed-off-by: Pavel Machek
22 Jul, 2020
1 commit
-
Rationale:
Reduces attack surface on kernel devs opening the links for MITM
as HTTPS traffic is much harder to manipulate.Deterministic algorithm:
For each file:
If not .svg:
For each line:
If doesn't contain `\bxmlns\b`:
For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:
If neither `\bgnu\.org/license`, nor `\bmozilla\.org/MPL\b`:
If both the HTTP and HTTPS versions
return 200 OK and serve the same content:
Replace HTTP with HTTPS.Signed-off-by: Alexander A. Klimov
Acked-by: Rob Herring
Acked-by: Dan Murphy
Signed-off-by: Pavel Machek
07 Apr, 2020
1 commit
-
The bitfield 'enabled' should bit unsigned, so make it unsigned.
Signed-off-by: Colin Ian King
Signed-off-by: Pavel Machek
06 Jan, 2020
1 commit
-
Add pointer to datasheet and fix typo in printk message.
Signed-off-by: Pavel Machek
05 Jan, 2020
1 commit
-
Signed-off-by: Pavel Machek
13 Sep, 2019
1 commit
-
Fix the error handling for the led-max-microamp property.
Need to check if the property is present and then if it is
retrieve the setting and its max boundaryReported-by: Pavel Machek
Signed-off-by: Dan Murphy
Signed-off-by: Jacek Anaszewski
04 Sep, 2019
1 commit
-
Move the static keyword to the front of declarations ramp_table,
als_avrg_table and als_imp_table, and resolve the following
compiler warnings that can be seen when building with warnings
enabled (W=1):drivers/leds/leds-lm3532.c:209:1: warning:
‘static’ is not at beginning of declaration [-Wold-style-declaration]drivers/leds/leds-lm3532.c:266:1: warning:
‘static’ is not at beginning of declaration [-Wold-style-declaration]drivers/leds/leds-lm3532.c:281:1: warning:
‘static’ is not at beginning of declaration [-Wold-style-declaration]Signed-off-by: Krzysztof Wilczynski
Signed-off-by: Jacek Anaszewski
01 Sep, 2019
1 commit
-
We may currently get unpaired regulator calls when configuring the LED
brightness via sysfs in case of regulator calls producing errors. Let's
fix this by maintaining local state for enabled.Signed-off-by: Tony Lindgren
Acked-by: Pavel Machek
Signed-off-by: Jacek Anaszewski
27 Aug, 2019
4 commits
-
Allow the full scale current to be configured at init.
Valid rangles are 5mA->29.8mA.Signed-off-by: Dan Murphy
Signed-off-by: Jacek Anaszewski -
Fixed misspelled words, added error check during probe
on the init of the registers, and fixed ALS/I2C control
mode.Fixes: bc1b8492c764 ("leds: lm3532: Introduce the lm3532 LED driver")
Reported-by: Pavel Machek
Signed-off-by: Dan Murphy
Acked-by: Pavel Machek
Signed-off-by: Jacek Anaszewski -
Change the define name of the full scale current registers.
Signed-off-by: Dan Murphy
Acked-by: Pavel Machek
Signed-off-by: Jacek Anaszewski -
Fix the brightness control for I2C mode. Instead of
changing the full scale current register update the ALS target
register for the appropriate banks.In addition clean up some code errors and random misspellings found
during coding.Tested on Droid4 as well as LM3532 EVM connected to a BeagleBoneBlack
Fixes: bc1b8492c764 ("leds: lm3532: Introduce the lm3532 LED driver")
Reported-by: Pavel Machek
Signed-off-by: Dan Murphy
Acked-by: Pavel Machek
Signed-off-by: Jacek Anaszewski
26 Jul, 2019
1 commit
-
Use fwnode_property_count_uXX() directly, that makes code neater.
Signed-off-by: Andy Shevchenko
Acked-by: Dan Murphy
Signed-off-by: Jacek Anaszewski
08 Apr, 2019
1 commit
-
Introduce the Texas Instruments LM3532 White LED driver.
The driver supports ALS configurability or manual brightness
control.The driver also supports associating LED strings with specific
control banks in a group or as individually controlled strings.Signed-off-by: Dan Murphy
Tested-by: Tony Lindgren
Signed-off-by: Jacek Anaszewski