Messages in this thread | | | From | Christian Gmeiner <> | Date | Fri, 1 Feb 2013 16:08:15 +0100 | Subject | Re: [PATCH] leds-ot200: Fix error caused by shifted mask |
| |
ping -- Christian Gmeiner, MSc
2013/1/23 GMEINER.Christian <C.GMEINER@bachmann.info>: >> -----Ursprüngliche Nachricht----- >> Von: Christian Gmeiner [mailto:christian.gmeiner@gmail.com] >> Gesendet: Mittwoch, 23. Januar 2013 09:11 >> An: linux-next@vger.kernel.org; akpm@linux-foundation.org; >> rpurdie@rpsys.net; linux-kernel@vger.kernel.org; GMEINER.Christian >> Cc: Christian Gmeiner >> Betreff: [PATCH] leds-ot200: Fix error caused by shifted mask >> >> During the development of this driver an in-house register documentation >> was used. The last weeks some integration tests were done and this problem >> was found. It turned out that the released register documentation is wrong. >> >> The fix is very simple: shift all masks by one. >> >> Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> > > > Acked-by: Christian Gmeiner <c.gmeiner@bachmann.info> > Tested-by: Christian Gmeiner <c.gmeiner@bachmann.info> > >> --- >> drivers/leds/leds-ot200.c | 14 +++++++------- >> 1 file changed, 7 insertions(+), 7 deletions(-) >> >> diff --git a/drivers/leds/leds-ot200.c b/drivers/leds/leds-ot200.c index >> ee14662..98cae52 100644 >> --- a/drivers/leds/leds-ot200.c >> +++ b/drivers/leds/leds-ot200.c >> @@ -47,37 +47,37 @@ static struct ot200_led leds[] = { >> { >> .name = "led_1", >> .port = 0x49, >> - .mask = BIT(7), >> + .mask = BIT(6), >> }, >> { >> .name = "led_2", >> .port = 0x49, >> - .mask = BIT(6), >> + .mask = BIT(5), >> }, >> { >> .name = "led_3", >> .port = 0x49, >> - .mask = BIT(5), >> + .mask = BIT(4), >> }, >> { >> .name = "led_4", >> .port = 0x49, >> - .mask = BIT(4), >> + .mask = BIT(3), >> }, >> { >> .name = "led_5", >> .port = 0x49, >> - .mask = BIT(3), >> + .mask = BIT(2), >> }, >> { >> .name = "led_6", >> .port = 0x49, >> - .mask = BIT(2), >> + .mask = BIT(1), >> }, >> { >> .name = "led_7", >> .port = 0x49, >> - .mask = BIT(1), >> + .mask = BIT(0), >> } >> }; >> >> -- >> 1.7.12.2.421.g261b511 > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |