From: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>
To: Rupesh Majhi <zoone.rupert@gmail.com>
Cc: "Andy Shevchenko" <andy@kernel.org>,
"David Lechner" <dlechner@baylibre.com>,
"Eddie James" <eajames@linux.ibm.com>,
"Jonathan Cameron" <jic23@kernel.org>,
"Nuno Sá" <nuno.sa@analog.com>,
linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 7/7] iio: pressure: dps310: include what the driver uses
Date: Tue, 24 Nov 2026 08:03:59 +0100 [thread overview]
Message-ID: <awU0bh5ChdbAsArK@monoceros> (raw)
In-Reply-To: <20261123220649.36887-8-zoone.rupert@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1510 bytes --]
On Tue, Nov 24, 2026 at 12:06:49AM +0200, Rupesh Majhi wrote:
> Include the headers for what the driver uses directly and drop
> linux/iio/sysfs.h, which it does not use.
>
> Signed-off-by: Rupesh Majhi <zoone.rupert@gmail.com>
> ---
> drivers/iio/pressure/dps310.c | 14 +++++++++++++-
> 1 file changed, 13 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/iio/pressure/dps310.c b/drivers/iio/pressure/dps310.c
> index 7581ea4c99ba..fd17fa38e9fc 100644
> --- a/drivers/iio/pressure/dps310.c
> +++ b/drivers/iio/pressure/dps310.c
> @@ -18,28 +18,40 @@
> * c0 * 0.5 + c1 * T_raw / kT °C
> */
>
> +#include <linux/array_size.h>
> #include <linux/bitfield.h>
> +#include <linux/bitops.h>
> +#include <linux/bits.h>
> #include <linux/cleanup.h>
> +#include <linux/container_of.h>
> #include <linux/delay.h>
> +#include <linux/dev_printk.h>
> +#include <linux/device/devres.h>
> #include <linux/devm-helpers.h>
> +#include <linux/err.h>
> +#include <linux/errno.h>
> #include <linux/i2c.h>
> #include <linux/interrupt.h>
> #include <linux/irq.h>
> +#include <linux/jiffies.h>
> #include <linux/limits.h>
> +#include <linux/log2.h>
> #include <linux/math64.h>
> +#include <linux/minmax.h>
> +#include <linux/mod_devicetable.h>
don't add <linux/mod_devicetable.h>. I don't know what made you think
this is needed, but it is not. i2c_device_id is already provided by
<linux/i2c.h> without the overhead (and useless dependencies).
Best regards
Uwe
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
prev parent reply other threads:[~2026-11-24 7:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 22:06 [PATCH 0/7] iio: pressure: dps310: cleanups Rupesh Majhi
2026-11-23 22:06 ` [PATCH 1/7] iio: pressure: dps310: sort register field defines low to high Rupesh Majhi
2026-11-23 22:06 ` [PATCH 2/7] iio: pressure: dps310: read the coefficients with get_unaligned_be*() Rupesh Majhi
2026-11-23 22:06 ` [PATCH 3/7] iio: pressure: dps310: use min() instead of min_t() Rupesh Majhi
2026-11-23 22:06 ` [PATCH 4/7] iio: pressure: dps310: use KILO for the Pa to kPa conversion Rupesh Majhi
2026-11-23 22:06 ` [PATCH 5/7] iio: pressure: dps310: use time unit macros for sleeps and timeouts Rupesh Majhi
2026-11-23 22:06 ` [PATCH 6/7] iio: pressure: dps310: drop the unused i2c_set_clientdata() Rupesh Majhi
2026-11-23 22:06 ` [PATCH 7/7] iio: pressure: dps310: include what the driver uses Rupesh Majhi
2026-11-24 7:03 ` Uwe Kleine-König [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=awU0bh5ChdbAsArK@monoceros \
--to=u.kleine-koenig@baylibre.com \
--cc=andy@kernel.org \
--cc=dlechner@baylibre.com \
--cc=eajames@linux.ibm.com \
--cc=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.com \
--cc=zoone.rupert@gmail.com \
/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