On 28/05/15 11:05, Uwe Kleine-König wrote: > Since 39b2bbe3d715 (gpio: add flags argument to gpiod_get*() functions) > which appeared in v3.17-rc1, the gpiod_get* functions take an additional > parameter that allows to specify direction and initial value for output. > > Also make use of gpiod_get*_optional where applicable. > > Apart from simplification of the affected drivers this is another step > towards making the flags argument to gpiod_get*() mandatory. > > Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx> > --- > drivers/video/fbdev/omap2/displays-new/encoder-opa362.c | 12 +++--------- > drivers/video/fbdev/omap2/displays-new/panel-dpi.c | 13 +++---------- > .../fbdev/omap2/displays-new/panel-lgphilips-lb035q02.c | 7 +++---- > .../fbdev/omap2/displays-new/panel-sharp-ls037v7dw01.c | 9 ++------- > 4 files changed, 11 insertions(+), 30 deletions(-) Thanks, this cleans up nicely those optional cases. Queued for 4.2. Tomi
Attachment:
signature.asc
Description: OpenPGP digital signature