Linux IIO development
 help / color / mirror / Atom feed
* [PATCH] staging: iio: ad9832: move ad9832_platform_data into include/linux/lib
@ 2025-10-05 12:18 Taimoor Zaeem
  2025-10-05 14:00 ` Greg KH
  0 siblings, 1 reply; 5+ messages in thread
From: Taimoor Zaeem @ 2025-10-05 12:18 UTC (permalink / raw)
  To: jic23, gregkh; +Cc: linux-iio, linux-staging, Taimoor Zaeem

Move struct ad9832_platform_data from
drivers/staging/iio/frequency/ad9832.h to
include/linux/iio/frequency/ad9832.h.

This clears a TODO item in the drivers.

Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com>
---
 drivers/staging/iio/frequency/ad9832.c                    | 3 +--
 {drivers/staging => include/linux}/iio/frequency/ad9832.h | 4 ----
 2 files changed, 1 insertion(+), 6 deletions(-)
 rename {drivers/staging => include/linux}/iio/frequency/ad9832.h (91%)

diff --git a/drivers/staging/iio/frequency/ad9832.c b/drivers/staging/iio/frequency/ad9832.c
index 49388da5a684..76bc384dfad1 100644
--- a/drivers/staging/iio/frequency/ad9832.c
+++ b/drivers/staging/iio/frequency/ad9832.c
@@ -22,8 +22,7 @@
 
 #include <linux/iio/iio.h>
 #include <linux/iio/sysfs.h>
-
-#include "ad9832.h"
+#include <linux/iio/frequency/ad9832.h>
 
 #include "dds.h"
 
diff --git a/drivers/staging/iio/frequency/ad9832.h b/include/linux/iio/frequency/ad9832.h
similarity index 91%
rename from drivers/staging/iio/frequency/ad9832.h
rename to include/linux/iio/frequency/ad9832.h
index d0d840edb8d2..81c97a521812 100644
--- a/drivers/staging/iio/frequency/ad9832.h
+++ b/include/linux/iio/frequency/ad9832.h
@@ -7,10 +7,6 @@
 #ifndef IIO_DDS_AD9832_H_
 #define IIO_DDS_AD9832_H_
 
-/*
- * TODO: struct ad9832_platform_data needs to go into include/linux/iio
- */
-
 /**
  * struct ad9832_platform_data - platform specific information
  * @freq0:		power up freq0 tuning word in Hz
-- 
2.51.0


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

end of thread, other threads:[~2025-10-06 10:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-05 12:18 [PATCH] staging: iio: ad9832: move ad9832_platform_data into include/linux/lib Taimoor Zaeem
2025-10-05 14:00 ` Greg KH
2025-10-05 14:47   ` Taimoor Zaeem
2025-10-06  6:21     ` Greg KH
2025-10-06 10:57   ` Jonathan Cameron

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