Devicetree
 help / color / mirror / Atom feed
From: "Siratul Islam" <siratul.islam@linux.dev>
To: "Andy Shevchenko" <andriy.shevchenko@intel.com>
Cc: jic23@kernel.org, robh@kernel.org, krzk+dt@kernel.org,
	conor+dt@kernel.org, dlechner@baylibre.com, nuno.sa@analog.com,
	andy@kernel.org, linux-iio@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 3/3] iio: magnetometer: add driver for QST QMC5883L Sensor
Date: Wed, 17 Jun 2026 13:59:18 +0000	[thread overview]
Message-ID: <8016d51ceb01974ae6d47185717d8e42dcc499bc@linux.dev> (raw)
In-Reply-To: <ajJI_KK0eLXeHK0A@ashevche-desk.local>

June 17, 2026 at 1:13 PM, "Andy Shevchenko" <andriy.shevchenko@intel.com mailto:andriy.shevchenko@intel.com?to=%22Andy%20Shevchenko%22%20%3Candriy.shevchenko%40intel.com%3E > wrote:


> 
> On Tue, Jun 16, 2026 at 05:49:39PM +0600, Siratul Islam wrote:
> 
> > 
> > Add driver for the QST QMC5883L 3-Axis Magnetic Sensor
> >  connected via i2c.
> > 
> ...
> 
> > 
> > +enum qmc5883l_chan {
> >  + QMC5883L_AXIS_X,
> >  + QMC5883L_AXIS_Y,
> >  + QMC5883L_AXIS_Z
> > 
> Leave trailing comma, it's not a dedicated terminator.
> 
> > 
> > +};
I generally have a habit of not adding a comma at the end as it reminds me of javascript/json. But sometimes I add it to help clang-format. Jonathan suggested me to remove the commas at "terminating" entries. So I took the opportunity to remove them everywhere. Apparently it was a wrong decision. Thnaks for pointing this out, I'll make it a new habit. As always I'm learning a lot from these reviews.
> ...
> 
> > 
> > +
> >  + return 0;
> >  +}
> > 
> ...
> Ideally this should have a comment with a reference to the datasheet where this
> delay is specified. Otherwise a comment why this exact value has been chosen.
> 
I have a comment where I define this, about this value being from the datasheet. I'll update it to specify where though.
> > 
> > + fsleep(QMC5883L_PORT_US);
...
> 
> > 
> > +};
> > 
> -- 
> With Best Regards,
> Andy Shevchenko
>

Thanks
Sirat

      reply	other threads:[~2026-06-17 13:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-16 11:49 [PATCH v2 0/3] iio: magnetometer: add driver for QST QMC5883L Sensor Siratul Islam
2026-06-16 11:49 ` [PATCH v2 1/3] dt-bindings: add entry for qstcorp Siratul Islam
2026-06-16 11:49 ` [PATCH v2 2/3] dt-bindings: iio: magnetometer: add QST QMC5883L Sensor Siratul Islam
2026-06-16 15:42   ` Conor Dooley
2026-06-16 11:49 ` [PATCH v2 3/3] iio: magnetometer: add driver for " Siratul Islam
2026-06-17  7:13   ` Andy Shevchenko
2026-06-17 13:59     ` Siratul Islam [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8016d51ceb01974ae6d47185717d8e42dcc499bc@linux.dev \
    --to=siratul.islam@linux.dev \
    --cc=andriy.shevchenko@intel.com \
    --cc=andy@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=jic23@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nuno.sa@analog.com \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox