Re: [PATCH 1/2] gpio-ich: Check for pin availability at request time

2013-03-05 Thread Jean Delvare
Hi Peter, On Tue, 05 Mar 2013 12:16:54 -0600, Peter Tyser wrote: > On Tue, 2013-03-05 at 09:06 +0100, Jean Delvare wrote: > > Stop checking for pin availability in get functions. These functions > > can be called repeatedly, so checking every time is bad for > > performance. > > > > Instead, chec

Re: [PATCH 1/2] gpio-ich: Check for pin availability at request time

2013-03-05 Thread Peter Tyser
Hi Jean, On Tue, 2013-03-05 at 09:06 +0100, Jean Delvare wrote: > Stop checking for pin availability in get functions. These functions > can be called repeatedly, so checking every time is bad for > performance. > > Instead, check at pin request time. This only happens once, and we can > let the

[PATCH 1/2] gpio-ich: Check for pin availability at request time

2013-03-05 Thread Jean Delvare
Stop checking for pin availability in get functions. These functions can be called repeatedly, so checking every time is bad for performance. Instead, check at pin request time. This only happens once, and we can let the caller know of the unavailability much earlier. Signed-off-by: Jean Delvare