All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iio: humidity: hts221: Fix checkpatch blank line warning
@ 2026-08-02  2:06 Adi Nata
  2026-08-02 15:38 ` Joshua Crofts
  0 siblings, 1 reply; 4+ messages in thread
From: Adi Nata @ 2026-08-02  2:06 UTC (permalink / raw)
  To: lorenzo, jic23, dlechner, nuno.sa, andy, linux-iio, linux-kernel
  Cc: linux-kernel-mentees, Adi Nata

Checkpatch warning:

WARNING: Missing a blank line after declarations
+	struct hts221_hw *hw = iio_priv(iio_dev);

Signed-off-by: Adi Nata <adinata.softwareengineer@gmail.com>
---
 drivers/iio/humidity/hts221_buffer.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/iio/humidity/hts221_buffer.c b/drivers/iio/humidity/hts221_buffer.c
index 4d03db19063e..c868549d09c0 100644
--- a/drivers/iio/humidity/hts221_buffer.c
+++ b/drivers/iio/humidity/hts221_buffer.c
@@ -194,6 +194,7 @@ static irqreturn_t hts221_buffer_handler_thread(int irq, void *p)
 int hts221_allocate_buffers(struct iio_dev *iio_dev)
 {
 	struct hts221_hw *hw = iio_priv(iio_dev);
+
 	return devm_iio_triggered_buffer_setup(hw->dev, iio_dev,
 					NULL, hts221_buffer_handler_thread,
 					&hts221_buffer_ops);
-- 
2.47.3


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] iio: humidity: hts221: Fix checkpatch blank line warning
  2026-08-02  2:06 [PATCH] iio: humidity: hts221: Fix checkpatch blank line warning Adi Nata
@ 2026-08-02 15:38 ` Joshua Crofts
  2026-08-02 17:12   ` Jonathan Cameron
  0 siblings, 1 reply; 4+ messages in thread
From: Joshua Crofts @ 2026-08-02 15:38 UTC (permalink / raw)
  To: Adi Nata
  Cc: lorenzo, jic23, dlechner, nuno.sa, andy, linux-iio, linux-kernel,
	linux-kernel-mentees

On Sun,  2 Aug 2026 10:06:13 +0800
Adi Nata <adinata.softwareengineer@gmail.com> wrote:

> Checkpatch warning:
> 
> WARNING: Missing a blank line after declarations
> +	struct hts221_hw *hw = iio_priv(iio_dev);
> 
> Signed-off-by: Adi Nata <adinata.softwareengineer@gmail.com>
> ---

This seems like churn on its own, Jonathan may not apply it.

Also, I feel like just putting checkpatch warnings directly into the
commit message is bad practice. Much better if it were "Add a blank line
after variable declarations per checkpatch warning."

-- 
Kind regards,
Joshua Crofts

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] iio: humidity: hts221: Fix checkpatch blank line warning
  2026-08-02 15:38 ` Joshua Crofts
@ 2026-08-02 17:12   ` Jonathan Cameron
  2026-08-06 21:46     ` Adi
  0 siblings, 1 reply; 4+ messages in thread
From: Jonathan Cameron @ 2026-08-02 17:12 UTC (permalink / raw)
  To: Joshua Crofts
  Cc: Adi Nata, lorenzo, dlechner, nuno.sa, andy, linux-iio,
	linux-kernel, linux-kernel-mentees

On Sun, 2 Aug 2026 17:38:52 +0200
Joshua Crofts <joshua.crofts1@gmail.com> wrote:

> On Sun,  2 Aug 2026 10:06:13 +0800
> Adi Nata <adinata.softwareengineer@gmail.com> wrote:
> 
> > Checkpatch warning:
> > 
> > WARNING: Missing a blank line after declarations
> > +	struct hts221_hw *hw = iio_priv(iio_dev);
> > 
> > Signed-off-by: Adi Nata <adinata.softwareengineer@gmail.com>
> > ---  
> 
> This seems like churn on its own, Jonathan may not apply it.
> 

True.  This highlights a broader point.  When making
a number of cleanups to a driver (and I am generally more willing
to take those than many maintainers) please group them into
a little patch series with a cover letter.

If this is one of a set and overall the seem worthwhile I might
pick them up.  Plus this driver is pretty aged so there are other
quality of code / modernization things that will make much more
of an impact than just this blank line.  Take a look at some
of the other similar cleanup series on the IIO list and see what
makes sense here. To give you a starter, dev_err_probe() and
checking which prints are actually useful + stopping the driver
rejecting Device tree falllback compatibles because of the hard
fail on a device ID mismatch.

> 
> Also, I feel like just putting checkpatch warnings directly into the
> commit message is bad practice. Much better if it were "Add a blank line
> after variable declarations per checkpatch warning."

Fully agree with this.  We really don't care what the print is, just
what is being improved and why.

Thanks

Jonathan


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] iio: humidity: hts221: Fix checkpatch blank line warning
  2026-08-02 17:12   ` Jonathan Cameron
@ 2026-08-06 21:46     ` Adi
  0 siblings, 0 replies; 4+ messages in thread
From: Adi @ 2026-08-06 21:46 UTC (permalink / raw)
  To: Jonathan Cameron, Joshua Crofts
  Cc: lorenzo, dlechner, nuno.sa, andy, linux-iio, linux-kernel,
	linux-kernel-mentees

On Mon, Aug 3, 2026 at 1:12 AM Jonathan Cameron <jic23@kernel.org> wrote:
>
> On Sun, 2 Aug 2026 17:38:52 +0200
> Joshua Crofts <joshua.crofts1@gmail.com> wrote:
>
>
> True.  This highlights a broader point.  When making
> a number of cleanups to a driver (and I am generally more willing
> to take those than many maintainers) please group them into
> a little patch series with a cover letter.
>
> If this is one of a set and overall the seem worthwhile I might
> pick them up.  Plus this driver is pretty aged so there are other
> quality of code / modernization things that will make much more
> of an impact than just this blank line.  Take a look at some
> of the other similar cleanup series on the IIO list and see what
> makes sense here. To give you a starter, dev_err_probe() and
> checking which prints are actually useful + stopping the driver
> rejecting Device tree falllback compatibles because of the hard
> fail on a device ID mismatch.
>
> >
> > Also, I feel like just putting checkpatch warnings directly into the
> > commit message is bad practice. Much better if it were "Add a blank line
> > after variable declarations per checkpatch warning."
>
> Fully agree with this.  We really don't care what the print is, just
> what is being improved and why.
>
> Thanks
>
> Jonathan
>

Hi Jonathan and Joshua,

Thank you for the advice. I will create a new patch series with a cover letter
for this hts221 driver accordingly based on your feedback.

Regards,
Adi Nata

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-08-06 21:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-02  2:06 [PATCH] iio: humidity: hts221: Fix checkpatch blank line warning Adi Nata
2026-08-02 15:38 ` Joshua Crofts
2026-08-02 17:12   ` Jonathan Cameron
2026-08-06 21:46     ` Adi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.