lkml.org 
[lkml]   [2010]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
FromDavid Brownell <>
SubjectRe: [PATCH 2/3] cs5535-gpio: Use set_direction
DateFri, 26 Feb 2010 23:04:49 -0800
On Friday 26 February 2010, Ben Gardner wrote:
> The CS5535 GPIO has independant controls for input and output enable.

Unusual, but not causing any conceptual problem.


> Use the set_direction method instead of direction_input and direction_output
> to enable use of the bidirectional mode.

Any reason you aren't making the standard behavior be:

input ... input enabled
output ... both enabled

That would make this driver behave like most other GPIO hardware, which
would help you avoid subtle problems.

Would there be any technical downside to that approach?




\
 
 \ /
  Last update: 2010-02-27 08:07    [from the cache]
©2003-2010