Bjorn Andersson
e98a860f65
leds: qcom-lpg: Require pattern to follow documentation
...
The leds-trigger-pattern documentation describes how the brightness of
the LED should transition linearly from one brightness value to the
next, over the given delta_t.
But the pattern engine in the Qualcomm LPG hardware only supports
holding the brightness for each entry for the period.
This subset of patterns can be represented in the leds-trigger-pattern
by injecting zero-time transitions after each entry in the pattern,
resulting in a pattern that pattern that can be rendered by the LPG.
Rework LPG pattern interface to require these zero-time transitions, to
make it comply with this subset of patterns and reject the patterns it
can't render.
Fixes: 24e2d05d1b ("leds: Add driver for Qualcomm LPG")
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org >
Signed-off-by: Pavel Machek <pavel@ucw.cz >
2022-05-24 22:08:10 +02:00
..
2022-01-12 19:43:15 +01:00
2022-05-07 23:12:19 +02:00
2022-05-24 22:08:10 +02:00
2022-02-17 12:25:30 +01:00
2021-10-13 20:07:57 +02:00
2022-05-07 23:09:31 +02:00
2021-09-27 16:09:42 +02:00
2020-07-22 14:41:29 +02:00
2022-01-12 19:43:14 +01:00
2021-08-18 08:27:30 +02:00
2021-09-27 16:16:42 +02:00
2020-09-26 21:56:39 +02:00
2020-09-26 21:56:42 +02:00
2019-05-30 11:25:18 -07:00
2020-09-26 21:56:43 +02:00
2021-02-19 22:15:10 +01:00
2021-01-31 10:38:02 +01:00
2019-06-19 17:09:55 +02:00
2020-09-26 21:56:43 +02:00
2021-05-28 11:38:55 +02:00
2020-09-26 21:56:43 +02:00
2020-02-26 14:34:55 +01:00
2021-05-28 11:38:56 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 11:28:39 +02:00
2020-09-26 21:56:39 +02:00
2022-02-09 13:00:45 +00:00
2020-06-22 10:37:58 +02:00
2019-05-30 11:26:32 -07:00
2022-02-09 13:00:45 +00:00
2022-02-09 13:00:45 +00:00
2021-05-28 11:38:54 +02:00
2021-08-18 08:27:30 +02:00
2019-06-19 17:09:55 +02:00
2020-09-26 21:56:38 +02:00
2019-06-19 17:09:55 +02:00
2022-05-07 23:10:22 +02:00
2020-09-26 21:56:39 +02:00
2020-12-30 19:37:13 +01:00
2021-05-28 11:38:58 +02:00
2021-05-28 12:00:13 +02:00
2021-02-26 13:56:40 -08:00
2021-04-25 22:21:32 +02:00
2022-02-12 13:02:50 +01:00
2021-08-03 23:49:31 +02:00
2021-05-30 23:03:48 +02:00
2019-06-19 17:09:55 +02:00
2022-05-07 23:20:54 +02:00
2022-01-12 19:43:15 +01:00
2020-07-22 14:42:06 +02:00
2021-05-28 11:38:57 +02:00
2020-04-17 14:49:22 +02:00
2020-09-26 21:56:39 +02:00
2021-05-13 17:30:15 +02:00
2020-09-26 21:56:39 +02:00
2020-09-26 21:56:39 +02:00
2019-06-19 17:09:55 +02:00
2021-05-28 11:39:00 +02:00
2021-08-03 23:49:31 +02:00
2020-12-30 19:37:13 +01:00
2020-09-26 21:56:43 +02:00
2020-09-26 21:56:39 +02:00
2019-05-30 11:26:32 -07:00
2021-05-28 11:39:00 +02:00
2021-05-28 11:38:59 +02:00
2020-09-26 21:56:43 +02:00
2019-06-19 17:09:55 +02:00
2020-12-30 19:37:13 +01:00
2019-05-30 11:26:37 -07:00
2020-09-30 19:22:58 +02:00
2015-11-03 08:59:13 +01:00
2022-03-02 09:51:40 +01:00
2020-09-30 19:15:42 +02:00
2022-05-04 19:37:51 +02:00
2020-09-26 21:56:43 +02:00
2020-09-26 21:56:39 +02:00
2021-08-18 08:27:31 +02:00
2020-01-02 22:41:53 +01:00
2022-05-05 10:04:52 +02:00
2020-08-17 18:04:06 +02:00
2020-09-26 21:56:39 +02:00
2022-02-09 13:00:45 +00:00
2020-12-30 19:37:14 +01:00
2019-05-21 10:50:45 +02:00
2020-09-26 21:56:43 +02:00
2022-01-12 19:43:15 +01:00
2019-09-03 20:34:46 +02:00
2021-05-10 11:58:54 +02:00
2019-12-21 20:10:02 +01:00
2021-06-23 22:11:26 +02:00
2020-12-30 19:37:13 +01:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2021-08-18 08:27:30 +02:00
2022-05-07 23:09:31 +02:00
2020-09-30 19:15:33 +02:00
2019-05-30 11:26:37 -07:00