16 Jul
2014
16 Jul
'14
11:48 a.m.
On Wed, Jul 16, 2014 at 04:28:33PM +0900, Alexandre Courbot wrote:
On Wed, Jul 16, 2014 at 4:12 PM, Thierry Reding
Then again, maybe rather than add a new set of functions we should bite the bullet and change gpiod_get() (and variants) to take an additional flags parameter. There aren't all that many users yet (I count 26 outside of drivers/gpio), so maybe now would still be a good time to do that.
That sounds reasonable indeed. And preferable to getting an aneurysm after trying to spell devm_gpiod_get_index_optional_with_flags().
This also makes the most sense since most GPIO users will want to set a direction and value right after obtaining one. So if there is no objection I will probably start refactoring gpiod_get() this week.
Yes, please!