Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1239058lqt; Fri, 7 Jun 2024 11:57:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVTrA2GkN0gMDF7fnroDKJVgGWI+rHyTykDF8sGBA9tnioDoScZspYgOCwu8u1DvDUbvk0ePNR+FaBzR+/Cj/lBaL/Blc4j7/gqOlu7/w== X-Google-Smtp-Source: AGHT+IGBavM9Oltti1UC4/yLPSQEPKoaRyrvMvBypu5UafxgPjw3FSZHXJDI4O1wGm1Xc7GbT67H X-Received: by 2002:a50:d603:0:b0:57c:5ec6:1466 with SMTP id 4fb4d7f45d1cf-57c5ec617d8mr1497111a12.25.1717786664568; Fri, 07 Jun 2024 11:57:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717786664; cv=pass; d=google.com; s=arc-20160816; b=NK4Z4YFyLoaRlXiJmXkSz7FwFumpw5snvrMhVMzct+HXHvG54J7nxOIoe+YBfXSa+r CmuVmbHN5H7jOjB0pJwMpOoBUntrobFpDMLctgT3tiaplhjLjZ8TsgLvKDFUQ3d1gYQh UOJ3vd89BTEDke0BSH6kqIeVAmUC+VCXK34J83IwqxIFNUbAeCduFQdH0iP3WtJTL1ll 8NDYVrfKuSwAe+h4EHHDhyWZOobQwlLFOATASH6pkcoiEqe9crMRm71JyYOJONYbx7X9 akAkFykmU7XnKu2lipHxz2GYvv9rtSe0SKwtmNe2QOIhaGpdLFizlUtSCzxfENroIkvs FcHA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zbG9P4sO/ccZYYiSSS3cMyQOlh6YgWYwW9xJG7coYT0=; fh=hY+/VZCIh3BxOImLBte92E3H2aAZfKQdsCEediVEFsQ=; b=LJnIhfQPd6HK4N4Cqk846sfMKvsywAkmHWC2ybpjKNTADLqs7qsnZgsbiiOS61gY0W pHp8wcYfgedQFr0cGINlWR21cneX1SvilinbWMqiW/xhof97Fx1s+XYF7flILe+sSYHy aLbBkI05ppvBNUHlCbzUs7yvgATnynXXW6yjdbaQI/U62W3zf6/iRK/jv6Nw9opwu1lg ExO2PhQItaMER/S1AaPgRPT1dG4w7dZsgT4GjCAlGM8PCE2MRgnCmkQfB6OmP3ACfumR cV+jh7rIiloHisYtNmlh6tXShLX7cpfoPElLyysdl3JoWvxtMeccnZCxFytu9Yy41/Gn cRzQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HpvV00kS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-206634-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206634-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57aae47ab36si2070510a12.691.2024.06.07.11.57.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 11:57:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206634-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HpvV00kS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-206634-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206634-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 44D5F1F232C4 for ; Fri, 7 Jun 2024 18:57:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 578E814AD35; Fri, 7 Jun 2024 18:56:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HpvV00kS" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 78B1210A24; Fri, 7 Jun 2024 18:56:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717786611; cv=none; b=EXuoYGBQPKbCcxiAv4FGzcmQONcMfqI/jm76v2YZO4yuagNHDhsg1YR5FVUyyRtTBaYYxBafYn8bBs5HJ+S0fGuJThNLwuOQ0bcz8qELJJn54mO/CoD6ZoG7Riozk3pws5voj8qZo6bUToDIKSdQ0+qsXcLXvj+nZ5MB3+wTTrM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717786611; c=relaxed/simple; bh=41IstQhdcJ/CO6qLA0Pt3uJNJsWcjN/+4QzXDnL5O5o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=j/4iwNfS4UzHCCkhZtRxprGif8cA4oeAHH2Lj96PWZlbgeIUf8A82ym/xpIvRt0rgmPdgdcth2X3RV+IMAady9aM8/Pr2ULGSkJ32JC02YLnFBf9FlDcTbKv9SDF0ABiRO0kHcV3PPikO/JP0WS4vnFrkQxsumeizGCnoLQ5BtI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HpvV00kS; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 36941C2BBFC; Fri, 7 Jun 2024 18:56:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717786611; bh=41IstQhdcJ/CO6qLA0Pt3uJNJsWcjN/+4QzXDnL5O5o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HpvV00kSl8s9vfARlmVxjxrgpaEHv60+3J6UWUibhgMNVrqp2C5sTpK45qL1nNkfz Vys2ef5PLRuKw3YTU6SlJg9YGbkZjhRBfszBCoG797zVVV2bn6lHu8j6gksma1XqXJ dDlwWXeIW7lumMaeQ+EmZDx9W3wSWPTmw861x0+UlP95BGXJYosJX+ak2XH3vsY0GX t8HqM2YeCLUTjyKk9IxpD4+4kdPwsVdVYIxmhjF4msOqbscf7eGI16XkmPamrQnkon Xh78tAkmv8KEc+JBVJYr9RlW2J/RKJd052x62m4h63LSNsT8J45t8j3EX3kbOKuRpo rrOJ6RMEnSPxQ== Date: Fri, 7 Jun 2024 13:56:48 -0500 From: Bjorn Andersson To: Anjelique Melendez Cc: pavel@ucw.cz, lee@kernel.org, robh@kernel.org, u.kleine-koenig@pengutronix.de, marijn.suijten@somainline.org, kees@kernel.org, morf3089@gmail.com, quic_gurus@quicinc.com, quic_subbaram@quicinc.com, linux-arm-msm@vger.kernel.org, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] leds: rgb: leds-qcom-lpg: Fix line wrapping style issues Message-ID: References: <20240607005250.4047135-1-quic_amelende@quicinc.com> <20240607005250.4047135-2-quic_amelende@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240607005250.4047135-2-quic_amelende@quicinc.com> On Thu, Jun 06, 2024 at 05:52:52PM GMT, Anjelique Melendez wrote: > Fix line wrapping style issues introduced in previous patches. Bending the line length guidelines is okay when it results in easier to read code. I find the existing code easier to read... Regards, Bjorn > > Signed-off-by: Anjelique Melendez > --- > drivers/leds/rgb/leds-qcom-lpg.c | 19 +++++++++++++------ > 1 file changed, 13 insertions(+), 6 deletions(-) > > diff --git a/drivers/leds/rgb/leds-qcom-lpg.c b/drivers/leds/rgb/leds-qcom-lpg.c > index e74b2ceed1c2..7c35b3ba09a3 100644 > --- a/drivers/leds/rgb/leds-qcom-lpg.c > +++ b/drivers/leds/rgb/leds-qcom-lpg.c > @@ -620,6 +620,7 @@ static void lpg_sdam_apply_lut_control(struct lpg_channel *chan) > u8 val = 0, conf = 0, lut_offset = 0; > unsigned int hi_pause, lo_pause; > struct lpg *lpg = chan->lpg; > + u16 addr; > > if (!chan->ramp_enabled || chan->pattern_lo_idx == chan->pattern_hi_idx) > return; > @@ -640,17 +641,23 @@ static void lpg_sdam_apply_lut_control(struct lpg_channel *chan) > lo_idx += lut_offset; > } > > - nvmem_device_write(lpg_chan_sdam, SDAM_PBS_SCRATCH_LUT_COUNTER_OFFSET + chan->sdam_offset, 1, &val); > - nvmem_device_write(lpg_chan_sdam, SDAM_PATTERN_CONFIG_OFFSET + chan->sdam_offset, 1, &conf); > - nvmem_device_write(lpg_chan_sdam, SDAM_END_INDEX_OFFSET + chan->sdam_offset, 1, &hi_idx); > - nvmem_device_write(lpg_chan_sdam, SDAM_START_INDEX_OFFSET + chan->sdam_offset, 1, &lo_idx); > + addr = SDAM_PBS_SCRATCH_LUT_COUNTER_OFFSET + chan->sdam_offset; > + nvmem_device_write(lpg_chan_sdam, addr, 1, &val); > + addr = SDAM_PATTERN_CONFIG_OFFSET + chan->sdam_offset; > + nvmem_device_write(lpg_chan_sdam, addr, 1, &conf); > + addr = SDAM_END_INDEX_OFFSET + chan->sdam_offset; > + nvmem_device_write(lpg_chan_sdam, addr, 1, &hi_idx); > + addr = SDAM_START_INDEX_OFFSET + chan->sdam_offset; > + nvmem_device_write(lpg_chan_sdam, addr, 1, &lo_idx); > > val = RAMP_STEP_DURATION(chan->ramp_tick_ms); > nvmem_device_write(lpg_chan_sdam, SDAM_REG_RAMP_STEP_DURATION, 1, &val); > > if (lpg->lut_sdam) { > - nvmem_device_write(lpg_chan_sdam, SDAM_PAUSE_HI_MULTIPLIER_OFFSET + chan->sdam_offset, 1, &hi_pause); > - nvmem_device_write(lpg_chan_sdam, SDAM_PAUSE_LO_MULTIPLIER_OFFSET + chan->sdam_offset, 1, &lo_pause); > + addr = SDAM_PAUSE_HI_MULTIPLIER_OFFSET + chan->sdam_offset; > + nvmem_device_write(lpg_chan_sdam, addr, 1, &hi_pause); > + addr = SDAM_PAUSE_LO_MULTIPLIER_OFFSET + chan->sdam_offset; > + nvmem_device_write(lpg_chan_sdam, addr, 1, &lo_pause); > } > > } > -- > 2.34.1 >