Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933376AbbFJM6G (ORCPT ); Wed, 10 Jun 2015 08:58:06 -0400 Received: from mail-ob0-f170.google.com ([209.85.214.170]:36298 "EHLO mail-ob0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933347AbbFJM6A convert rfc822-to-8bit (ORCPT ); Wed, 10 Jun 2015 08:58:00 -0400 MIME-Version: 1.0 In-Reply-To: <1433757225-6524-1-git-send-email-u.kleine-koenig@pengutronix.de> References: <1433757225-6524-1-git-send-email-u.kleine-koenig@pengutronix.de> Date: Wed, 10 Jun 2015 14:57:59 +0200 Message-ID: Subject: Re: [PATCH] HSI: nokia-modem: use flags argument of devm_gpiod_get to set direction From: Linus Walleij To: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= Cc: Sebastian Reichel , Sascha Hauer , "linux-kernel@vger.kernel.org" , Alexandre Courbot Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 847 Lines: 21 On Mon, Jun 8, 2015 at 11:53 AM, 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. > > Use this to simplify the driver. Furthermore this is one caller less > that stops us making the flags argument to gpiod_get*() mandatory. > > Signed-off-by: Uwe Kleine-König Acked-by: Linus Walleij Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/