Re: [patch 2.6.20-rc1 1/6] GPIO core

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Pavel Machek
Date: Monday, January 1, 2007 - 1:55 pm

Hi!


typedef int gpio_t would hurt, and would serve as a useful
documentation hint. Furthermore, you could switch it to enum on
platform where it makes sense.


...it adds exactly one line.


Saying it is an error would be okay by me. (Or "Behaviour of these calls for
GPIOs that can't be safely accessed without sleeping is undefined.").


Sorry.


Ok, I mis-read your specs as trying to push warnings into the scope.


Ok, "debug behaviour is out of scope, again".

What about "Behavour of reading a GPIO that hasn't been marked as an
input using gpio_set_direction() is implementation-defined"?

									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [patch 2.6.20-rc1 1/6] GPIO core, Pavel Machek, (Mon Jan 1, 1:55 pm)
Re: [patch 2.6.20-rc1 1/6] GPIO core, David Brownell, (Mon Jan 1, 2:27 pm)
Re: [patch 2.6.20-rc1 1/6] GPIO core, Pavel Machek, (Tue Jan 2, 7:18 am)