Re: [RFC] generic GPIO parameter API

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ben Nizette
Date: Tuesday, June 3, 2008 - 12:32 am

On Tue, 2008-06-03 at 08:42 +0200, Guennadi Liakhovetski wrote:

You're talking about a gpio chip driver?  How does the end user go about
turning the pullups on and off?  How does the end user know that that's
what they want to do?


Well everything else in the world just uses negative returns for errors,
I'm sure that any parameter get/set routines can conform with that, no?
This way is more consistent with, gpio_{get,set}_val etc not to mention
the rest of the kernel.

	--Ben.


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] generic GPIO parameter API, Guennadi Liakhovetski, (Mon Jun 2, 10:22 am)
Re: [RFC] generic GPIO parameter API, Guennadi Liakhovetski, (Mon Jun 2, 10:54 am)
Re: [RFC] generic GPIO parameter API, Ben Nizette, (Mon Jun 2, 4:13 pm)
Re: [RFC] generic GPIO parameter API, Guennadi Liakhovetski, (Mon Jun 2, 11:42 pm)
Re: [RFC] generic GPIO parameter API, Ben Nizette, (Tue Jun 3, 12:32 am)
Re: [RFC] generic GPIO parameter API, Guennadi Liakhovetski, (Tue Jun 3, 1:29 am)
Re: [RFC] generic GPIO parameter API, Ben Nizette, (Tue Jun 3, 3:02 pm)
Re: [RFC] generic GPIO parameter API, David Brownell, (Thu Jun 5, 10:29 pm)
Re: [RFC] generic GPIO parameter API, Guennadi Liakhovetski, (Thu Jun 5, 10:50 pm)
Re: [RFC] generic GPIO parameter API, Guennadi Liakhovetski, (Mon Jun 9, 9:23 am)
Re: [RFC] generic GPIO parameter API, Mark Brown, (Mon Jun 9, 9:54 am)
Re: [RFC] generic GPIO parameter API, Guennadi Liakhovetski, (Mon Jun 9, 10:09 am)
Re: [RFC] generic GPIO parameter API, Mark Brown, (Tue Jun 10, 2:43 am)