Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp980263lqt; Fri, 7 Jun 2024 04:55:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUBNuMpkOWN/dCdJXhRFtobqyP+kU1R2oYxNWn/Jqp8RaCP38SPr21KZSAUSJfSl0kJOJ+NC2uZ3n1nykf8vDleVMf+540m4+9a0i+RTg== X-Google-Smtp-Source: AGHT+IGZzDhHgcWzZ96ykGM/OAdqtB5icO3VhwtJGOsmBXpdpy/61+UijXpHgo70itB/r5qC43gd X-Received: by 2002:a05:6a21:197:b0:1b2:2e3e:42e0 with SMTP id adf61e73a8af0-1b2f9ac185emr2506017637.37.1717761333533; Fri, 07 Jun 2024 04:55:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717761333; cv=pass; d=google.com; s=arc-20160816; b=KEQFMFqp1NNSPEvoUjZLxm/Ghhw47x/euhCPUxKKWGOzssjO6yOm+NR3HNJpAfFn+O U7JI3Wn1fc4o2SCAEx/wVrmipJoFMhJryo2jDo8+MWC9B2hQl+3nTAGo4lsAAhXdw1vJ GHMwQp1LZcpQDo/FCeioZxns4+G7Y+uEtM9uve7KUG1c0oX6U3978wYukwn/UALoeMzK 3fsBCavctpjRK01sLjcRSLxqjd/5gANDVV+WDNnxKUPMBj0ZKxtwW0AQR1wSWXV5YYq3 jZNHJKlcKnc+nAy1Kkm0sUrvIkkUGjB3U0z/IC3A1FIW3H8DIM1O6mfEMxfwgSYrdMfH erRw== 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=rtyZHfNHLIEk1etQ5taXU35Apq3XiT3tieFHZcsuRNc=; fh=5UbuIFXC9fPB7rYlCS9a0bNSljPfDD9vE5s+9P1nJFE=; b=Sx0U5i2sE9Vh3nAMcCP2wwPlGHmCk2X7glLCOBJxBfeL8KTYed2M1AD9scjT1zDYFc JL/mmR3wo/KJliz7KRWSDylcd9DEBgsftk1Hl4kBo1LiWQ1FQh93boyu3MjgW7bNbImI oTR2AsFGj1gKPPO9TpvziLBkezJzKpMep+HdhshGDYIMEfuXDvC3VeWaf4yQF4tIWHbC +A0CzM0Bikzgo60GVYswduSg67zMNVilaigRncRAA2KnNYrWi2RO5QJDdNofIWd8zThJ K5xJGgqEqZPU1f58Zd5mq1pIy6O6SykCSXnffhuyGIo8/5+jrWXG4znuA9ewq5k9OpRc mOWA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WR1CkN3d; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-205969-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205969-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de2760acdesi2861389a12.516.2024.06.07.04.55.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 04:55:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205969-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WR1CkN3d; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-205969-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205969-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B5DDB2850A0 for ; Fri, 7 Jun 2024 11:55:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4BBF7190463; Fri, 7 Jun 2024 11:55:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="WR1CkN3d" Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A5F9C187329 for ; Fri, 7 Jun 2024 11:55:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717761322; cv=none; b=IUao6Z71lGdlKqqTNm86O1J1zPRqiS2HIe7roZr+uCuj3XjPxfVDH54j8Bh353LkHJIpTabaMz0zmzbhOb6Q4FyjF56DQybWzZE0anxcaUHZBCWCcCg/jmaO7nJdvQQrRsdIaNR6YCZbeDeThbqawzg/amVMfUmIYQZvgQ1A/Jg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717761322; c=relaxed/simple; bh=WnMWdtBFTyx8UVC9VEwmi4gKVXZmsQitGSiHRvjEblQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CX5+FMpyZp2tYet/OvLxWdYXWFnRJzT3HZQW36ZNJwZOds+NfK0y6U3YdS1jXqlnYcBMSsSuSVJIMOonpChiVVtnEfUKZ1RdDQGtyFuxEMzoYFRBkHjB+WcYNRk/TBoelK3Cr/cfL4+M6XnCh4iJNX2pXRy4ujteBFnCp2CuaZA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=WR1CkN3d; arc=none smtp.client-ip=209.85.167.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-5295eb47b48so2559320e87.1 for ; Fri, 07 Jun 2024 04:55:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717761319; x=1718366119; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=rtyZHfNHLIEk1etQ5taXU35Apq3XiT3tieFHZcsuRNc=; b=WR1CkN3dQ9f9QKMF8eDG297MzzoS1XruPsezqIPuO3VFE91Nxxcne319IonTzl8C5P P8J+6zmsRwQd3jNTwjEPV8r0SY81kRuUwEofq+fSpV0YW6KjVhDIImqQwZvaqmAhDrw4 APEmI3sdToLTUBjkd2cQsVzKAXag+beQ0MbgXOXRu32lOvFbGlDABVB/Cvh7I1hc4MPO UH7O0pIh3Fi8yCSHC4rRsBwf9rJ2UF2rHX4sHEYDQ4YdfpYfEuTbl34grvitRGfCEcul XO6rvJm/UrEUOzbkE3tckiIrFij3y5a0J1Z0AOE0lMi7jb1SXpvsvmWMYIfkKl9dG4P2 7fXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717761319; x=1718366119; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=rtyZHfNHLIEk1etQ5taXU35Apq3XiT3tieFHZcsuRNc=; b=hJL//qAlGzsYTP09q9FrY6c9fM/eqsZR61aD1OtEHkDSEOhwuFlmLW1CjPjP3c/cPU NkWxbo9lofvSxgxcNcNDHAzwk6eszAF23k0o6D8A4gzggEi+ha+P+BCm/nedXvdLD2O0 Fz0BK5xeblIrxfgWnwaXw+4yfdi1/yleRcQpfWC3+IpJHAEaAEFY4hCADSjCwrMvE5eK z19NszbvRXuNF9UZexFEaAg5BavonlQqLRuEd73ejm6ye58k1yY3BlJdhWN4UHoX/A6P S+7PjLRAYREQRmXF5Z9hl4Qf0uujl6v8Wk1Wxs1CFbelye/yEboD+CnRzhnoEmKRL23J vx6g== X-Forwarded-Encrypted: i=1; AJvYcCX9DYQRzGHlDyEpuIkEyAn/aV4Oi1MEf4CX2vIl6M4yic66NDDiAADN+iyl0kaSF7VqNMQ45Ik3uFEmgJdyt4dCCiFTivIfnCg/y6Tl X-Gm-Message-State: AOJu0Ywq2MgzX2ywiVS3xf1ODK2Smqh/DSpWs+VxUXj1RpwyCk30I8yl /Lpwwh6G5cDnkldZ8H+R9CEKGFdeVqUZSKyh0QcA1Dt83KuHSJ0ci97ULeVxU3o= X-Received: by 2002:ac2:55a2:0:b0:52a:feb2:72ea with SMTP id 2adb3069b0e04-52bb9fcc344mr1550402e87.55.1717761318824; Fri, 07 Jun 2024 04:55:18 -0700 (PDT) Received: from eriador.lumag.spb.ru (dzdbxzyyyyyyyyyyyykxt-3.rev.dnainternet.fi. [2001:14ba:a0c3:3a00::227]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52bb423d51dsm511157e87.199.2024.06.07.04.55.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 04:55:18 -0700 (PDT) Date: Fri, 7 Jun 2024 14:55:16 +0300 From: Dmitry Baryshkov To: Anjelique Melendez Cc: pavel@ucw.cz, lee@kernel.org, robh@kernel.org, andersson@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: <75npm63xd4pf2l3olin36xal4ctyh56vpjhy3xeegurez3gnp3@kt7tmgm3osyr> 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 -0700, Anjelique Melendez wrote: > Fix line wrapping style issues introduced in previous patches. I'd say this reduces readability of the patch. > > 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 > -- With best wishes Dmitry