Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756967Ab3CFKiR (ORCPT ); Wed, 6 Mar 2013 05:38:17 -0500 Received: from [212.90.139.82] ([212.90.139.82]:36302 "EHLO smtp2.goneo.de" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1755843Ab3CFKiQ (ORCPT ); Wed, 6 Mar 2013 05:38:16 -0500 X-Spam-Flag: NO X-Spam-Score: -2.884 From: Lars Poeschel To: Axel Lin Subject: Re: [PATCH] gpio: viperboard: Remove duplicate code to set gpio->gpiob_val Date: Wed, 6 Mar 2013 11:38:21 +0100 User-Agent: KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; ) Cc: Grant Likely , Linus Walleij , linux-kernel@vger.kernel.org References: <1362486116.3660.1.camel@phoenix> In-Reply-To: <1362486116.3660.1.camel@phoenix> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201303061138.21776.poeschel@lemonage.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1110 Lines: 34 On Tuesday 05 March 2013 at 13:21:56, Axel Lin wrote: > Set it once is enough, and it's done in vprbrd_gpiob_set() which is called > by vprbrd_gpiob_direction_output(). > > Signed-off-by: Axel Lin Thank you! Tested-and-Acked-by: Lars Poeschel > --- > drivers/gpio/gpio-viperboard.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/drivers/gpio/gpio-viperboard.c > b/drivers/gpio/gpio-viperboard.c index 59d7239..095ab14 100644 > --- a/drivers/gpio/gpio-viperboard.c > +++ b/drivers/gpio/gpio-viperboard.c > @@ -380,10 +380,6 @@ static int vprbrd_gpiob_direction_output(struct > gpio_chip *chip, struct vprbrd *vb = gpio->vb; > > gpio->gpiob_out |= (1 << offset); > - if (value) > - gpio->gpiob_val |= (1 << offset); > - else > - gpio->gpiob_val &= ~(1 << offset); > > mutex_lock(&vb->lock); -- 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/