mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
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:
committed by
Petro Karashchenko
parent
1815f8b731
commit
779a610ca3
@@ -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
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user