Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp283216lqs; Thu, 13 Jun 2024 09:53:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUztugXgL62s8o1fsEe1Wf7LzKsATUkilH9kj7w+BB/HGhiE9cp1zLeFqA2/AmhriVOCNV8z+k02yJcNtxKAvJHZhGGXQwkOPzE0i5YzQ== X-Google-Smtp-Source: AGHT+IEQnLBtN5LgzaVuWbY7jy4G+FOT3Kc8hkUe+KO/9OF2H/RotCViNd7bTMyuUS7dQ+w6Pyn2 X-Received: by 2002:a05:6512:1285:b0:52c:8811:42f7 with SMTP id 2adb3069b0e04-52ca6e67145mr276057e87.19.1718297623973; Thu, 13 Jun 2024 09:53:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718297623; cv=pass; d=google.com; s=arc-20160816; b=EMzRYTCo1XPxuSJEvAKXjR773EsSE72Gvd9QtmCUNjOZj4VzrWb/36+5CFRWDnQ1XR m9L5sanQXiJJ3tQZjh1+zmGT9ik/69Pno8UacFRZmIaLIDwzdZs8qMPTNY1Oc+itr400 yoecFZ1A6BVZnS9qtZkIWe8xeKi7mr+2OrBULbKMHvP0RGhnI6JZEF4hQDuSsLfOdeUB yOIsx9h5CShhNL6EX5hSvMw9j5CTNzH+XivWWjWgBBaUQCP2AwpwaAxrdqEiscXpcOEW p3kltLVxXubZK58DZJUwKbnPIfgwmWJYo3yhkWXJV5amufrhS3n4XwdVrXwhloI45sP/ YHcQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=S8bmPoahmjcWSWxrKM5HBJAJ6e72t3tvXFD98VSuUtU=; fh=gnke+gmVMlesbTYxKI+1Wkg91BIX07lGt0RY0PvvvhU=; b=hGDgm0180FvojZnsUV9kxbNRy3qEqcuAcNaPF495gwSXpQdxc6PuAfBsq1fjg5521h k60iQY8G5J0VfwgQBO/PwVxaVPi+ecbYYKA3r/hRGyGZKbAxzdtIaFfUFZTVYOJFUKUd IPpITgvsg6cU2+3YjVkXw5LrTx4T1mgojnlBKsv+abGx4XJ/q76y8+X9cjRfjthPuqiU guEQBan843V3shZOEcar8rxgidFanibZCsehydIidLPX8qH4Yxd0Dv6YlAo3M69kG5oH dW+IAluzRqiKdhqZwZzx83QQM/aE9aV9/d7csZcwwmB7eHI4MFrrnNK27BlBziObETVg LbXg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=L4MGqO1D; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-213691-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213691-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. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56e26f78si85132866b.794.2024.06.13.09.53.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 09:53:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213691-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=L4MGqO1D; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-213691-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213691-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 A98EF1F221DF for ; Thu, 13 Jun 2024 16:53:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C2D201494B8; Thu, 13 Jun 2024 16:53:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="L4MGqO1D" 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 E449C132124; Thu, 13 Jun 2024 16:53:34 +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=1718297615; cv=none; b=QzgUI+OwUjs9ZmSurU7n8E5A+sdbctnKbgZXCsWM1vppd4k03irvMjtv5MfbGgPDN0euWmoP8+rWcI5HlpIdt/D+qp8Fm6SzPGHOsvnj0JcA5Hw1CPX+koZ7z+R0sc2sEEVoZDvh5XALQXQ2MYMFpkFzPJCnZDucIvAasTWOO8w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718297615; c=relaxed/simple; bh=qsCzOIKZDVpVFgr7usAGnRf033LNJuB/tQRDt1YJFq4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qz0xtuEH28wWWLYi+DzjOanfiOkrsef48sEB45+sWdonniUXDZ5/HM9OTMsaeBZrdRwbQI7KCGRvHw7Di7VlQWyL2oB0pkVkaOKfEdNLSBuijCm9zCnsIWyOViml5EKavkVH1gRF5O0ySejetWr5Z26eG/dQcF5Lr7aUThNLZIs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=L4MGqO1D; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 015DCC2BBFC; Thu, 13 Jun 2024 16:53:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718297614; bh=qsCzOIKZDVpVFgr7usAGnRf033LNJuB/tQRDt1YJFq4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=L4MGqO1DaCRRdOKauIlSwN2J7OtN0VxnhjExMt7ciaqVHpmcjkG30ZOQMhh1+v78S SgbjnDH13DRV8bT4ZCQCKO3HXPZ1Rc6P+LagK8ng5NQmGUwSCliBV6KJNW4RgPyGWX v7BBnP5uFF2bKG5vk1F17k7a5r4NKD4rMLFkdr1lqaYZNkyNuydR2ia7uf+HzNH5uT u8+tgMpqgBUIecMNA+n2MhF34L5Ieu6NNVt8W24LzDn7wujUpKI62Q2BNxkTIs98hP hzx0c77SOzhHDEDj52IQsAYNSjNRHz/eOADCOoPi5/e1AefasnvWB6HxHab45IGWkX yNiEy0bB2GQ1g== Date: Thu, 13 Jun 2024 17:53:29 +0100 From: Lee Jones To: Bjorn Andersson Cc: Anjelique Melendez , pavel@ucw.cz, 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: <20240613165329.GP2561462@google.com> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Fri, 07 Jun 2024, Bjorn Andersson wrote: > 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... Agree. This patch is not going to be accepted. > > 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 > > -- Lee Jones [李琼斯]