summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-pcf8563.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-01-11 00:09:43 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2012-01-11 01:30:49 +0100
commit3b080945aa7670354364c8f9e1a3a07cbb97beb3 (patch)
treec901525cf47e02e4423800d13bc7802755e566cd /drivers/rtc/rtc-pcf8563.c
parentleds: add driver for TCA6507 LED controller (diff)
downloadlinux-3b080945aa7670354364c8f9e1a3a07cbb97beb3.tar.xz
linux-3b080945aa7670354364c8f9e1a3a07cbb97beb3.zip
drivers/leds/leds-mc13783.c: fix off-by-one for checking num_leds
The LED id begins from 0. Thus the maximum number of leds should be MC13783_LED_MAX + 1. Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Philippe Retornaz <philippe.retornaz@epfl.ch> Cc: Richard Purdie <rpurdie@rpsys.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/rtc-pcf8563.c')
0 files changed, 0 insertions, 0 deletions