mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
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>
This commit is contained in:
parent
0124b354a4
commit
bc94ca718f
|
|
@ -140,12 +140,6 @@ struct ioatdma_chan {
|
|||
int prev_intr_coalesce;
|
||||
};
|
||||
|
||||
struct ioat_sysfs_entry {
|
||||
struct attribute attr;
|
||||
ssize_t (*show)(struct dma_chan *, char *);
|
||||
ssize_t (*store)(struct dma_chan *, const char *, size_t);
|
||||
};
|
||||
|
||||
/**
|
||||
* struct ioat_sed_ent - wrapper around super extended hardware descriptor
|
||||
* @hw: hardware SED
|
||||
|
|
|
|||
|
|
@ -14,6 +14,12 @@
|
|||
|
||||
#include "../dmaengine.h"
|
||||
|
||||
struct ioat_sysfs_entry {
|
||||
struct attribute attr;
|
||||
ssize_t (*show)(struct dma_chan *, char *);
|
||||
ssize_t (*store)(struct dma_chan *, const char *, size_t);
|
||||
};
|
||||
|
||||
static ssize_t cap_show(struct dma_chan *c, char *page)
|
||||
{
|
||||
struct dma_device *dma = c->device;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user