Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Jani Nikula <ext-jani.1.nikula <at> nokia.com>
Subject: [RFC PATCH 0/3] GPIO switch framework
Newsgroups: gmane.linux.kernel
Date: Friday 20th March 2009 13:50:47 UTC (over 7 years ago)
Hi -

This RFC patchset is a pretty straightforward adaptation of OMAP GPIO
switch framework for mainline integration.

The GPIO switch framework allows reporting and changing GPIO switches
via sysfs, with debouncing and sysfs/in-kernel notifications for input
switches.

The switches are added as /sys/class/gpio/switch- under
the gpiolib sysfs structure.


BR,
Jani.


Jani Nikula (3):
      GPIOLIB: Add new gpio_device_create function
      GPIO-SWITCH: Adaptation of GPIO switch framework for mainline
      GPIO-SWITCH: Kconfig and Makefile

 drivers/gpio/Kconfig        |   10 +
 drivers/gpio/Makefile       |    2 +
 drivers/gpio/gpio-switch.c  |  534
+++++++++++++++++++++++++++++++++++++++++++
 drivers/gpio/gpiolib.c      |   52 +++++
 include/asm-generic/gpio.h  |   12 +
 include/linux/gpio-switch.h |   74 ++++++
 6 files changed, 684 insertions(+), 0 deletions(-)
 create mode 100644 drivers/gpio/gpio-switch.c
 create mode 100644 include/linux/gpio-switch.h
 
CD: 3ms