diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2022-12-17 08:28:25 -0600 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2022-12-17 08:28:25 -0600 |
commit | 75caf5940899a33165fb3d521492f3cd6b20c9a7 (patch) | |
tree | c35e9aef6d27c3befbf75574207cb722d0e4a106 /drivers/leds/trigger/ledtrig-pattern.c | |
parent | ed56954cf5a8b7abb530676a073d14f9de661d69 (diff) | |
parent | 7cb092a0336c5770656c6742e7a7ce3042c8c44e (diff) | |
download | linux-75caf5940899a33165fb3d521492f3cd6b20c9a7.tar.gz linux-75caf5940899a33165fb3d521492f3cd6b20c9a7.tar.bz2 linux-75caf5940899a33165fb3d521492f3cd6b20c9a7.zip |
Merge tag 'leds-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/pavel/linux-leds
Pull LED updates from Pavel Machek:
"Lee Jones offered his help with maintaining LEDs, thanks a lot.
Plus, there are some bugfixes as a bonus"
* tag 'leds-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/pavel/linux-leds:
leds: MAINTAINERS: include dt-bindings headers
leds: qcom,pm8058-led: Convert to DT schema
leds: use sysfs_emit() to instead of scnprintf()
leds: is31fl319x: Fix setting current limit for is31fl319{0,1,3}
MAINTAINERS: Add additional co-maintainer to LEDs
leds: lp5523: fix out-of-bounds bug in lp5523_selftest()
dt-bindings: leds: Add 'cpuX' to 'linux,default-trigger'
led: qcom-lpg: Fix sleeping in atomic
leds: max8997: Don't error if there is no pdata
leds: lp55xx: remove variable j
leds-pca955x: Remove the unused function pca95xx_num_led_regs()
Diffstat (limited to 'drivers/leds/trigger/ledtrig-pattern.c')
-rw-r--r-- | drivers/leds/trigger/ledtrig-pattern.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/trigger/ledtrig-pattern.c b/drivers/leds/trigger/ledtrig-pattern.c index 43a265dc4696..885ca63f383f 100644 --- a/drivers/leds/trigger/ledtrig-pattern.c +++ b/drivers/leds/trigger/ledtrig-pattern.c @@ -155,7 +155,7 @@ static ssize_t repeat_show(struct device *dev, struct device_attribute *attr, mutex_unlock(&data->lock); - return scnprintf(buf, PAGE_SIZE, "%d\n", repeat); + return sysfs_emit(buf, "%d\n", repeat); } static ssize_t repeat_store(struct device *dev, struct device_attribute *attr, |