lkml.org 
[lkml]   [2012]   [Jan]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC][PATCH 2/2] hwmon: (w83627ehf) Add GPIO port 3 functionality
On Fri, 13 Jan 2012 19:39:56 -0600, Alex Rio wrote:
> The w83627ehf chip has 5 GPIO ports, currently none of them is supported.
> This patch adds the GPIO port 3 driver with the following functions:
> set/get pin values, direction_in/out, set_debounce.
> The values are also available to the userspace (if requiered)
> in the path /sys/class/gpio by using the export/unexport functions.
> Please look at the REVISIT comment, this is the main reason of the RFC,
> suggestions will be highly appreciated.
>
> Signed-off-by: Alex Rio <scasbyte@gmail.com>
> ---
> drivers/hwmon/w83627ehf.c | 188 +++++++++++++++++++++++++++++++++++++++++++++
> 1 files changed, 188 insertions(+), 0 deletions(-)

This is calling for a MFD driver for these chips. This was proposed in
the past, BTW, but never followed up:
http://lists.lm-sensors.org/pipermail/lm-sensors/2010-February/027795.html

Putting everything in the current driver is not going to be accepted.
It certainly looks pleasant because it's a more simple approach, but
the result would be a complex and unmaintainable driver.

--
Jean Delvare


\
 
 \ /
  Last update: 2012-01-14 21:21    [W:0.053 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site