From: Andy Shevchenko <andriy.shevchenko@intel.com>
To: Abdalla Al-Dalleh <abdalla.ahmad@sesame.org.jo>
Cc: "Lars-Peter Clausen" <lars@metafoo.de>,
"Michael Hennerich" <Michael.Hennerich@analog.com>,
"Jonathan Cameron" <jic23@kernel.org>,
"David Lechner" <dlechner@baylibre.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Gabriel Shahrouzi" <gshahrouzi@gmail.com>,
"open list" <linux-kernel@vger.kernel.org>,
"open list:IIO SUBSYSTEM AND DRIVERS" <linux-iio@vger.kernel.org>,
"open list:STAGING SUBSYSTEM" <linux-staging@lists.linux.dev>
Subject: Re: [PATCH] drivers: staging: iio: frequency: ad9832.h: Fixed TODO note.
Date: Fri, 27 Jun 2025 21:35:07 +0300 [thread overview]
Message-ID: <aF7kW6xRxRb0VN5H@smile.fi.intel.com> (raw)
In-Reply-To: <20250627175114.548076-1-abdalla.ahmad@sesame.org.jo>
On Fri, Jun 27, 2025 at 08:51:14PM +0300, Abdalla Al-Dalleh wrote:
> - drivers/staging/iio/frequency/ad9832.c: Changed .h file location
> - drivers/staging/iio/frequency/ad9832.h: Removed struct definition
Nothing of the above explains "why you are doing this".
> - include/linux/iio/dac/ad9832.h: Added header file according to the
> TODO note.
Also it sounds like you put three different things in one basket.
...
> #include <linux/iio/iio.h>
> #include <linux/iio/sysfs.h>
> -
This blank line should stay. It will delimit the groups of headers.
> -#include "ad9832.h"
> +#include <linux/iio/dac/ad9832.h>
>
> #include "dds.h"
> +++ b/include/linux/iio/dac/ad9832.h
> @@ -0,0 +1,33 @@
Haven't you added -M -C when preparing the patch? This will make sure you are
really copying / moving the context and show only the differences.
...
> +struct ad9832_platform_data {
> + unsigned long freq0;
> + unsigned long freq1;
> + unsigned short phase0;
> + unsigned short phase1;
> + unsigned short phase2;
> + unsigned short phase3;
> +};
Ideally this should be dropped from any global header file. If one needs
something like this, it can be propagated via software nodes.
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2025-06-27 18:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-27 17:51 Abdalla Al-Dalleh
2025-06-27 18:35 ` Andy Shevchenko [this message]
2025-06-27 19:29 ` Abdalla Ahmad
2025-06-27 19:45 ` Dan Carpenter
2025-06-27 20:32 ` David Lechner
2025-06-28 15:12 ` Jonathan Cameron
2025-06-28 6:08 ` Greg Kroah-Hartman
2025-06-28 15:10 ` Jonathan Cameron
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=aF7kW6xRxRb0VN5H@smile.fi.intel.com \
--to=andriy.shevchenko@intel.com \
--cc=Michael.Hennerich@analog.com \
--cc=abdalla.ahmad@sesame.org.jo \
--cc=andy@kernel.org \
--cc=dlechner@baylibre.com \
--cc=gregkh@linuxfoundation.org \
--cc=gshahrouzi@gmail.com \
--cc=jic23@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=nuno.sa@analog.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
all inboxes | Powered by JetHome®