From: Grant Likely Subject: Re: [PATCH V2] gpio: tps65910: Add sleep control support Date: Wed, 1 Feb 2012 17:15:08 -0700 Message-ID: <20120202001508.GD15343@ponder.secretlab.ca> References: <1328078344-11670-1-git-send-email-ldewangan@nvidia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-tegra-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Linus Walleij Cc: Laxman Dewangan , linus.walleij-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org, jedu-kDsPt+C1G03kYMGBc/C6ZA@public.gmane.org, lrg-kDsPt+C1G03kYMGBc/C6ZA@public.gmane.org, broonie-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org, sameo-VuQAYsv1563Yd54FQh9/CA@public.gmane.org, gg-kDsPt+C1G03kYMGBc/C6ZA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-tegra@vger.kernel.org On Wed, Feb 01, 2012 at 01:30:54PM +0100, Linus Walleij wrote: > On Wed, Feb 1, 2012 at 7:39 AM, Laxman Dewangan wrote: > > > The device tps65910/tps65911 supports the sleep > > functionality in some of gpios. If gpio is configured > > in output mode and sleep is enabled then during device > > sleep state, the output of gpio becomes LOW regardless > > of non-sleep output value. > > Such gpio can be used to control regulator switch such > > that output of regulator is off in device sleep state. > > > > Signed-off-by: Laxman Dewangan > > --- > > Changes from V1: > > Taken care of review comments from Linus Walleij's > > - Remove magic numbers and added macro for defining them. > > - Used bool type for the platform's gpio sleep control data. > > Thanks, looks good! > Acked-by: Linus Walleij Applied, thanks. g.