Files
wlan-ap/feeds/mediatek/fitblk/patches/100-header.patch
2025-09-29 11:16:33 -04:00

25 lines
506 B
Diff

--- a/fitblk.c
+++ b/fitblk.c
@@ -5,7 +5,7 @@
#include <string.h>
#include <unistd.h>
#include <sys/ioctl.h>
-#include <linux/fitblk.h>
+#include "fitblk.h"
static int fitblk_release(char *device)
{
--- /dev/null
+++ b/fitblk.h
@@ -0,0 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
+#ifndef _LINUX_FITBLK_H
+#define _LINUX_FITBLK_H
+
+/*
+ * IOCTL commands --- we will commandeer 0x46 ('F')
+ */
+#define FITBLK_RELEASE 0x4600
+
+#endif /* _LINUX_FITBLK_H */