Remove the unnecessary NULL fields in global instance definition of file_operations

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2023-01-01 01:11:53 +08:00
committed by Petro Karashchenko
parent 1815f8b731
commit 779a610ca3
209 changed files with 1 additions and 961 deletions
-3
View File
@@ -125,9 +125,6 @@ static const struct file_operations ads7843e_fops =
NULL, /* truncate */
NULL, /* mmap */
ads7843e_poll /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
};
/* If only a single ADS7843E device is supported, then the driver state
-3
View File
@@ -138,9 +138,6 @@ static const struct file_operations ajoy_fops =
NULL, /* truncate */
NULL, /* mmap */
ajoy_poll /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
};
/****************************************************************************
-3
View File
@@ -136,9 +136,6 @@ static const struct file_operations btn_fops =
NULL, /* truncate */
NULL, /* mmap */
btn_poll /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
};
/****************************************************************************
-3
View File
@@ -227,9 +227,6 @@ static const struct file_operations g_mbr3108_fileops =
NULL, /* truncate */
NULL, /* mmap */
mbr3108_poll /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
};
/****************************************************************************
-3
View File
@@ -138,9 +138,6 @@ static const struct file_operations djoy_fops =
NULL, /* truncate */
NULL, /* mmap */
djoy_poll /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
};
/****************************************************************************
-3
View File
@@ -179,9 +179,6 @@ static const struct file_operations ft5x06_fops =
NULL, /* truncate */
NULL, /* mmap */
ft5x06_poll /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
};
/* Maps FT5x06 touch events into bit encoded representation used by NuttX */
-3
View File
@@ -91,9 +91,6 @@ static const struct file_operations g_keyboard_fops =
NULL, /* truncate */
NULL, /* mmap */
keyboard_poll /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
};
/****************************************************************************
-3
View File
@@ -118,9 +118,6 @@ static const struct file_operations max11802_fops =
NULL, /* truncate */
NULL, /* mmap */
max11802_poll /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
};
/* If only a single MAX11802 device is supported, then the driver state
-3
View File
@@ -283,9 +283,6 @@ static const struct file_operations mxt_fops =
NULL, /* truncate */
NULL, /* mmap */
mxt_poll /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
};
/****************************************************************************
-4
View File
@@ -118,10 +118,6 @@ static const struct file_operations nunchuck_fops =
NULL, /* write */
NULL, /* seek */
nunchuck_ioctl, /* ioctl */
NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
};
/****************************************************************************
-3
View File
@@ -258,9 +258,6 @@ static const struct file_operations g_hidkbd_fops =
NULL, /* truncate */
NULL, /* mmap */
spq10kbd_poll /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
};
/****************************************************************************
-3
View File
@@ -127,9 +127,6 @@ static const struct file_operations g_stmpe811fops =
NULL, /* truncate */
NULL, /* mmap */
stmpe811_poll /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
};
/****************************************************************************
-3
View File
@@ -93,9 +93,6 @@ static const struct file_operations g_touch_fops =
NULL, /* truncate */
NULL, /* mmap */
touch_poll /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
};
/****************************************************************************
-3
View File
@@ -212,9 +212,6 @@ static const struct file_operations tsc2007_fops =
NULL, /* truncate */
NULL, /* mmap */
tsc2007_poll /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
};
/* If only a single TSC2007 device is supported, then the driver state