Re: [patch -mm 05/20] chardev: GPIO for SCx200 & PC-8736x: put gpio_dump on a diet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 17 Jun 2006 12:27:02 -0600
Jim Cromie <[email protected]> wrote:

> +        u32 config = scx200_gpio_configure(index, ~0, 0);
> +
> +        printk(KERN_INFO NAME ": GPIO-%02u: 0x%08lx %s %s %s %s %s %s %s\n",
> +               index, (unsigned long) config,
> +               (config & 1) ? "OE"      : "TS",		/* output enabled / tristate */
> +               (config & 2) ? "PP"      : "OD",		/* push pull / open drain */
> +               (config & 4) ? "PUE"     : "PUD",	/* pull up enabled/disabled */
> +               (config & 8) ? "LOCKED"  : "",		/* locked / unlocked */
> +               (config & 16) ? "LEVEL"  : "EDGE",	/* level/edge input */
> +               (config & 32) ? "HI"     : "LO",		/* trigger on rising/falling edge */ 
> +               (config & 64) ? "DEBOUNCE" : "");	/* debounce */
>  }

Please use hard tabs.

Casting `config' to ulong isn't needed here.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux