From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fgw20-7.mail.saunalahti.fi (fgw20-7.mail.saunalahti.fi [62.142.5.81]) (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 9E9EA7E1 for ; Sat, 21 Jun 2025 19:55:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.142.5.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750535748; cv=none; b=sGCpuCYVbg48mQCsUhz+uugkBJYq3ddY9BnvwT+n13MKi9YdoDj9yGw2BNaIhgBmSafLgZa/rZVmoyZKDpg5dyV0OAYUEiaPB+EDv9hNmFHlc5fgroWZ1hU+ktCQCgJox59v/E8kbDmU7M03Zi6HCWHhwzH0g0gDQWLVXw3XTmo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750535748; c=relaxed/simple; bh=XN9dgj8KZxF+ZFA7X5ypPmDNQHGVkzrlJsyw+f1Ohzs=; h=From:Date:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rEgxKJh+OVaSwGN7slom+eGCMbG+BjeZ4ofGLeD8uflUbUXEWYXV4nnOgbZPagVFJq62cqzt52oYHpohjQe6bE6eUdh5gdRHdTh40AS1v5gI7w4tWkrO8pCs0OxBafpU6InEAZxXwFze2APyyyttXoXHfdaYFn2mtGHQG9z6zlw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com; spf=fail smtp.mailfrom=gmail.com; arc=none smtp.client-ip=62.142.5.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=gmail.com Received: from localhost (88-113-26-232.elisa-laajakaista.fi [88.113.26.232]) by fgw22.mail.saunalahti.fi (Halon) with ESMTP id b672fed3-4ed9-11f0-a5a7-005056bdf889; Sat, 21 Jun 2025 22:55:43 +0300 (EEST) From: Andy Shevchenko Date: Sat, 21 Jun 2025 22:55:42 +0300 To: Lothar Rubusch Cc: Andy Shevchenko , lars@metafoo.de, Michael.Hennerich@analog.com, jic23@kernel.org, dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org, corbet@lwn.net, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, eraretuya@gmail.com Subject: Re: [PATCH v9 07/11] iio: accel: adxl345: add activity event feature Message-ID: References: <20250610215933.84795-1-l.rubusch@gmail.com> <20250610215933.84795-8-l.rubusch@gmail.com> Precedence: bulk X-Mailing-List: linux-doc@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: Sat, Jun 21, 2025 at 08:06:49PM +0200, Lothar Rubusch kirjoitti: [...] > > > + ret = regmap_read(st->regmap, ADXL345_REG_ACT_INACT_CTRL, &axis_ctrl); > > > + if (ret) > > > + return ret; > > > + > > > + switch (type) { > > > + case ADXL345_ACTIVITY: > > > + en = FIELD_GET(ADXL345_ACT_X_EN, axis_ctrl) | > > > + FIELD_GET(ADXL345_ACT_Y_EN, axis_ctrl) | > > > + FIELD_GET(ADXL345_ACT_Z_EN, axis_ctrl); > > > > Something happened to the indentation. > > Ditto for several places in the code (upper and lower from this). > > What is the matter with the indention here? I'm doing `checkpatch.pl > --strict --codespell` on that and don't get an issue? Would you expect > cases like the FIELD_GET() calls on the next line, linked by a binary > OR, to be indented by yet another TAB? All 'F':s should be on the same column (since the email already mangled [not by me], here is just an example). en = FIELD_GET(ADXL345_ACT_X_EN, axis_ctrl) | FIELD_GET(ADXL345_ACT_Y_EN, axis_ctrl) | FIELD_GET(ADXL345_ACT_Z_EN, axis_ctrl); > > > + break; > > > + default: > > > + return -EINVAL; > > > + } > > > + > > > + if (!en) > > > + return en; > > > + > > > + /* Check if corresponding interrupts are enabled */ > > > + ret = regmap_read(st->regmap, ADXL345_REG_INT_ENABLE, ®val); > > > + if (ret) > > > + return ret; > > > + > > > + return adxl345_act_int_reg[type] & regval; > > > +} ... Really, cut the unrelated context in the replies! -- With Best Regards, Andy Shevchenko