[PATCH]: Fix xf86-input-keyboard build on Linux/sparc
Alan Coopersmith
alan.coopersmith at sun.com
Tue Feb 24 17:11:30 PST 2009
Applied. Thanks.
-alan-
David Miller wrote:
> lnx_kbd.c: Fix Sparc build.
>
> Signed-off-by: David S. Miller <davem at davemloft.net>
>
> diff --git a/src/lnx_kbd.c b/src/lnx_kbd.c
> index d599df7..cfe35a3 100644
> --- a/src/lnx_kbd.c
> +++ b/src/lnx_kbd.c
> @@ -57,17 +57,6 @@ SetKbdLeds(InputInfoPtr pInfo, int leds)
> {
> int real_leds = 0;
>
> -#if defined (__sparc__)
> - KbdDevPtr pKbd = (KbdDevPtr) pInfo->private;
> - if (pKbd->sunKbd) {
> - if (leds & 0x08) real_leds |= XLED1;
> - if (leds & 0x04) real_leds |= XLED3;
> - if (leds & 0x02) real_leds |= XLED4;
> - if (leds & 0x01) real_leds |= XLED2;
> - leds = real_leds;
> - real_leds = 0;
> - }
> -#endif /* defined (__sparc__) */
> #ifdef LED_CAP
> if (leds & XLED1) real_leds |= LED_CAP;
> if (leds & XLED2) real_leds |= LED_NUM;
> _______________________________________________
> xorg-devel mailing list
> xorg-devel at lists.x.org
> http://lists.x.org/mailman/listinfo/xorg-devel
--
-Alan Coopersmith- alan.coopersmith at sun.com
Sun Microsystems, Inc. - X Window System Engineering
More information about the xorg-devel
mailing list