public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] staging: iio: frequency: ad9832: replace long/short with u32/u16
@ 2025-12-06  5:48 Dharanitharan R
  2025-12-06 15:42 ` Jonathan Cameron
  2025-12-06 16:32 ` Andy Shevchenko
  0 siblings, 2 replies; 3+ messages in thread
From: Dharanitharan R @ 2025-12-06  5:48 UTC (permalink / raw)
  To: Lars-Peter Clausen
  Cc: Michael Hennerich, Jonathan Cameron, David Lechner, Nuno Sá,
	Andy Shevchenko, Greg Kroah-Hartman, linux-iio, linux-staging,
	linux-kernel, Dharanitharan R

Cleanup the AD9832 header by explicitly including <linux/types.h> and
replacing ambiguous integer types with fixed-width kernel types:

- unsigned long → u32
- unsigned short → u16

This improves type clarity and ensures consistent behavior across
architectures.

Signed-off-by: Dharanitharan R <dharanitharan725@gmail.com>
---
 drivers/staging/iio/frequency/ad9832.h | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/drivers/staging/iio/frequency/ad9832.h b/drivers/staging/iio/frequency/ad9832.h
index d0d840edb8d2..d59ad0627a9b 100644
--- a/drivers/staging/iio/frequency/ad9832.h
+++ b/drivers/staging/iio/frequency/ad9832.h
@@ -6,6 +6,7 @@
  */
 #ifndef IIO_DDS_AD9832_H_
 #define IIO_DDS_AD9832_H_
+#include <linux/types.h>
 
 /*
  * TODO: struct ad9832_platform_data needs to go into include/linux/iio
@@ -22,12 +23,12 @@
  */
 
 struct ad9832_platform_data {
-	unsigned long		freq0;
-	unsigned long		freq1;
-	unsigned short		phase0;
-	unsigned short		phase1;
-	unsigned short		phase2;
-	unsigned short		phase3;
+	u32 freq0;
+	u32 freq1;
+	u16 phase0;
+	u16 phase1;
+	u16 phase2;
+	u16 phase3;
 };
 
 #endif /* IIO_DDS_AD9832_H_ */
-- 
2.43.0


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

end of thread, other threads:[~2025-12-06 16:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-06  5:48 [PATCH v1] staging: iio: frequency: ad9832: replace long/short with u32/u16 Dharanitharan R
2025-12-06 15:42 ` Jonathan Cameron
2025-12-06 16:32 ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox