Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dmaengine: ioatdma: move sysfs entry definition out of header

Move struct ioat_sysfs_entry into sysfs.c because it is only used in it.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Acked-by: Dave Jiang <dave.jiang@intel.com>
Link: https://patch.msgid.link/20260304-sysfs-const-ioat-v2-2-b9b82651219b@weissschuh.net
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Thomas Weißschuh and committed by
Vinod Koul
bc94ca71 0124b354

+6 -6
-6
drivers/dma/ioat/dma.h
··· 140 140 int prev_intr_coalesce; 141 141 }; 142 142 143 - struct ioat_sysfs_entry { 144 - struct attribute attr; 145 - ssize_t (*show)(struct dma_chan *, char *); 146 - ssize_t (*store)(struct dma_chan *, const char *, size_t); 147 - }; 148 - 149 143 /** 150 144 * struct ioat_sed_ent - wrapper around super extended hardware descriptor 151 145 * @hw: hardware SED
+6
drivers/dma/ioat/sysfs.c
··· 14 14 15 15 #include "../dmaengine.h" 16 16 17 + struct ioat_sysfs_entry { 18 + struct attribute attr; 19 + ssize_t (*show)(struct dma_chan *, char *); 20 + ssize_t (*store)(struct dma_chan *, const char *, size_t); 21 + }; 22 + 17 23 static ssize_t cap_show(struct dma_chan *c, char *page) 18 24 { 19 25 struct dma_device *dma = c->device;