From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752548AbeCLI5j (ORCPT ); Mon, 12 Mar 2018 04:57:39 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:45408 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750988AbeCLI5h (ORCPT ); Mon, 12 Mar 2018 04:57:37 -0400 X-Google-Smtp-Source: AG47ELtIhiYelHlA7mS14I1qe5cvXlZ+Ik8cYJekkImLgkNsBkBecWLSHF2f8F59hxGzQgKXmJQDvw== Date: Mon, 12 Mar 2018 08:57:33 +0000 From: Lee Jones To: SF Markus Elfring Cc: Tony Lindgren , linux-omap@vger.kernel.org, kernel-janitors@vger.kernel.org, LKML Subject: Re: [PATCH v2 14/17 4/4] mfd: tps65910: Move an assignment in tps65910_sleepinit() Message-ID: <20180312085733.qkau2n3cos4743yj@dell> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 09 Mar 2018, SF Markus Elfring wrote: > From: Markus Elfring > Date: Fri, 9 Mar 2018 09:19:42 +0100 > > Move the assignment for the local variable "dev" so that its setting > will be performed after a configuration check by this function. > > Signed-off-by: Markus Elfring > --- > > v2: > Lee Jones requested a resend for this patch. The change was rebased > on source files from Linux next-20180308. Thanks. What happened here: [PATCH v2 14/17 4/4] How have you managed to insert 4 patches into the x/17 thread? It shouldn't matter for reviewing purposes. It just looks really odd. > drivers/mfd/tps65910.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/mfd/tps65910.c b/drivers/mfd/tps65910.c > index 7e7d3d1642c6..bf16cbe6fd88 100644 > --- a/drivers/mfd/tps65910.c > +++ b/drivers/mfd/tps65910.c > @@ -315,11 +315,11 @@ static int tps65910_sleepinit(struct tps65910 *tps65910, > struct device *dev; > int ret; > > - dev = tps65910->dev; > - > if (!pmic_pdata->en_dev_slp) > return 0; > > + dev = tps65910->dev; > + > /* enabling SLEEP device state */ > ret = tps65910_reg_set_bits(tps65910, TPS65910_DEVCTRL, > DEVCTRL_DEV_SLP_MASK); -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog