mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00: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:
parent
1815f8b731
commit
779a610ca3
209 changed files with 1 additions and 961 deletions
|
|
@ -205,10 +205,6 @@ static const struct file_operations g_adcops =
|
|||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
cxd56_adc_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
#if defined (CONFIG_CXD56_LPADC0) || defined (CONFIG_CXD56_LPADC0_1) || defined (CONFIG_CXD56_LPADC_ALL)
|
||||
|
|
|
|||
|
|
@ -97,10 +97,6 @@ static const struct file_operations g_chargerops =
|
|||
charger_write, /* write */
|
||||
NULL, /* seek */
|
||||
charger_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
static struct charger_dev_s g_chargerdev =
|
||||
|
|
|
|||
|
|
@ -82,10 +82,6 @@ static const struct file_operations g_gaugeops =
|
|||
gauge_write, /* write */
|
||||
NULL, /* seek */
|
||||
gauge_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
static struct bat_gauge_dev_s g_gaugedev =
|
||||
|
|
|
|||
|
|
@ -109,9 +109,6 @@ static const struct file_operations g_geofencefops =
|
|||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
cxd56_geofence_poll /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/* ioctl command list */
|
||||
|
|
|
|||
|
|
@ -320,9 +320,6 @@ static const struct file_operations g_gnssfops =
|
|||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
cxd56_gnss_poll /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/* GNSS ioctl command list */
|
||||
|
|
|
|||
|
|
@ -114,12 +114,6 @@ static const struct rtc_ops_s g_rtc_ops =
|
|||
.setrelative = cxd56_setrelative,
|
||||
.cancelalarm = cxd56_cancelalarm,
|
||||
#endif
|
||||
#ifdef CONFIG_RTC_IOCTL
|
||||
.ioctl = NULL,
|
||||
#endif
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
.destroy = NULL,
|
||||
#endif
|
||||
};
|
||||
|
||||
/* CXD56 RTC device state */
|
||||
|
|
|
|||
|
|
@ -112,16 +112,6 @@ static const struct rtc_ops_s g_rtc_ops =
|
|||
.cancelalarm = imxrt_cancelalarm,
|
||||
.rdalarm = imxrt_rdalarm,
|
||||
#endif
|
||||
#ifdef CONFIG_RTC_PERIODIC
|
||||
.setperiodic = NULL, /* Not implemented */
|
||||
.cancelperiodic = NULL,
|
||||
#endif
|
||||
#ifdef CONFIG_RTC_IOCTL
|
||||
.ioctl = NULL,
|
||||
#endif
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
.destroy = NULL,
|
||||
#endif
|
||||
};
|
||||
|
||||
/* i.MXRT RTC device state */
|
||||
|
|
|
|||
|
|
@ -109,19 +109,12 @@ static const struct rtc_ops_s g_rtc_ops =
|
|||
{
|
||||
.rdtime = kinetis_rdtime,
|
||||
.settime = kinetis_settime,
|
||||
.havesettime = NULL,
|
||||
#ifdef CONFIG_RTC_ALARM
|
||||
.setalarm = kinetis_setalarm,
|
||||
.setrelative = kinetis_setrelative,
|
||||
.cancelalarm = kinetis_cancelalarm,
|
||||
.rdalarm = kinetis_rdalarm,
|
||||
#endif
|
||||
#ifdef CONFIG_RTC_IOCTL
|
||||
.ioctl = NULL,
|
||||
#endif
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
.destroy = NULL,
|
||||
#endif
|
||||
};
|
||||
|
||||
/* Kinetis RTC device operations */
|
||||
|
|
|
|||
|
|
@ -65,13 +65,6 @@ static const struct file_operations g_rngops =
|
|||
NULL, /* open */
|
||||
NULL, /* close */
|
||||
lpc54_read, /* read */
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
NULL, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -133,12 +133,6 @@ static const struct rtc_ops_s g_rtc_ops =
|
|||
.setperiodic = lpc54_setperiodic,
|
||||
.cancelperiodic = lpc54_cancelperiodic,
|
||||
#endif
|
||||
#ifdef CONFIG_RTC_IOCTL
|
||||
.ioctl = NULL,
|
||||
#endif
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
.destroy = NULL,
|
||||
#endif
|
||||
};
|
||||
|
||||
/* LPC54 RTC device state */
|
||||
|
|
|
|||
|
|
@ -139,12 +139,6 @@ static const struct rtc_ops_s g_rtc_ops =
|
|||
.setperiodic = max326_setperiodic,
|
||||
.cancelperiodic = max326_cancelperiodic,
|
||||
#endif
|
||||
#ifdef CONFIG_RTC_IOCTL
|
||||
.ioctl = NULL,
|
||||
#endif
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
.destroy = NULL,
|
||||
#endif
|
||||
};
|
||||
|
||||
/* RTC device state */
|
||||
|
|
|
|||
|
|
@ -74,10 +74,6 @@ static const struct file_operations g_stub_drvrops =
|
|||
phyplus_stub_write, /* write */
|
||||
phyplus_stub_seek, /* seek */
|
||||
phyplus_stub_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/* static struct gpio_dev_s stub_dev; */
|
||||
|
|
|
|||
|
|
@ -85,13 +85,6 @@ static const struct file_operations g_trngops =
|
|||
NULL, /* open */
|
||||
NULL, /* close */
|
||||
sam_read, /* read */
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
NULL, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -252,9 +252,6 @@ static const struct file_operations g_tsdops =
|
|||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
sam_tsd_poll /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/* The driver state structure is pre-allocated. */
|
||||
|
|
|
|||
|
|
@ -85,13 +85,6 @@ static const struct file_operations g_trngops =
|
|||
NULL, /* open */
|
||||
NULL, /* close */
|
||||
sam_read, /* read */
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
NULL, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -795,10 +795,6 @@ static const struct file_operations hrtim_fops =
|
|||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
stm32_hrtim_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
#endif /* CONFIG_STM32_HRTIM_DISABLE_CHARDRV */
|
||||
|
||||
|
|
|
|||
|
|
@ -81,13 +81,6 @@ static const struct file_operations g_rngops =
|
|||
NULL, /* open */
|
||||
NULL, /* close */
|
||||
stm32_rng_read, /* read */
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
NULL, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -146,12 +146,6 @@ static const struct rtc_ops_s g_rtc_ops =
|
|||
.setperiodic = stm32_setperiodic,
|
||||
.cancelperiodic = stm32_cancelperiodic,
|
||||
#endif
|
||||
#ifdef CONFIG_RTC_IOCTL
|
||||
.ioctl = NULL,
|
||||
#endif
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
.destroy = NULL,
|
||||
#endif
|
||||
};
|
||||
|
||||
/* STM32 RTC device state */
|
||||
|
|
|
|||
|
|
@ -81,13 +81,6 @@ static const struct file_operations g_rngops =
|
|||
NULL, /* open */
|
||||
NULL, /* close */
|
||||
stm32_rng_read, /* read */
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
NULL, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -80,13 +80,6 @@ static const struct file_operations g_rngops =
|
|||
NULL, /* open */
|
||||
NULL, /* close */
|
||||
stm32_rngread, /* read */
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
NULL, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -142,12 +142,6 @@ static const struct rtc_ops_s g_rtc_ops =
|
|||
.setperiodic = stm32_setperiodic,
|
||||
.cancelperiodic = stm32_cancelperiodic,
|
||||
#endif
|
||||
#ifdef CONFIG_RTC_IOCTL
|
||||
.ioctl = NULL,
|
||||
#endif
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
.destroy = NULL,
|
||||
#endif
|
||||
};
|
||||
|
||||
/* STM32 RTC device state */
|
||||
|
|
|
|||
|
|
@ -143,12 +143,6 @@ static const struct rtc_ops_s g_rtc_ops =
|
|||
.setperiodic = stm32_setperiodic,
|
||||
.cancelperiodic = stm32_cancelperiodic,
|
||||
#endif
|
||||
#ifdef CONFIG_RTC_IOCTL
|
||||
.ioctl = NULL,
|
||||
#endif
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
.destroy = NULL,
|
||||
#endif
|
||||
};
|
||||
|
||||
/* STM32 RTC device state */
|
||||
|
|
|
|||
|
|
@ -81,13 +81,6 @@ static const struct file_operations g_rngops =
|
|||
NULL, /* open */
|
||||
NULL, /* close */
|
||||
stm32l4_rngread, /* read */
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
NULL, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -142,12 +142,6 @@ static const struct rtc_ops_s g_rtc_ops =
|
|||
.setperiodic = stm32l4_setperiodic,
|
||||
.cancelperiodic = stm32l4_cancelperiodic,
|
||||
#endif
|
||||
#ifdef CONFIG_RTC_IOCTL
|
||||
.ioctl = NULL,
|
||||
#endif
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
.destroy = NULL,
|
||||
#endif
|
||||
};
|
||||
|
||||
/* STM32L4 RTC device state */
|
||||
|
|
|
|||
|
|
@ -141,12 +141,6 @@ static const struct rtc_ops_s g_rtc_ops =
|
|||
.setperiodic = stm32wb_setperiodic,
|
||||
.cancelperiodic = stm32wb_cancelperiodic,
|
||||
#endif
|
||||
#ifdef CONFIG_RTC_IOCTL
|
||||
.ioctl = NULL,
|
||||
#endif
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
.destroy = NULL,
|
||||
#endif
|
||||
};
|
||||
|
||||
/* STM32WB RTC device state */
|
||||
|
|
|
|||
|
|
@ -119,10 +119,6 @@ static const struct file_operations g_consoleops =
|
|||
spi_console_write, /* write */
|
||||
NULL, /* seek */
|
||||
spi_console_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -145,12 +145,6 @@ static const struct rtc_ops_s g_rtc_ops =
|
|||
.setperiodic = rx65n_setperiodic,
|
||||
.cancelperiodic = rx65n_cancelperiodic,
|
||||
#endif
|
||||
#ifdef CONFIG_RTC_IOCTL
|
||||
.ioctl = NULL,
|
||||
#endif
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
.destroy = NULL,
|
||||
#endif
|
||||
};
|
||||
|
||||
/* RX65N RTC device state */
|
||||
|
|
|
|||
|
|
@ -142,12 +142,6 @@ static const struct rtc_ops_s g_rtc_ops =
|
|||
.setperiodic = bl602_setperiodic,
|
||||
.cancelperiodic = bl602_cancelperiodic,
|
||||
#endif
|
||||
#ifdef CONFIG_RTC_IOCTL
|
||||
.ioctl = NULL,
|
||||
#endif
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
.destroy = NULL,
|
||||
#endif
|
||||
};
|
||||
|
||||
/* BL602 RTC device state */
|
||||
|
|
|
|||
|
|
@ -109,16 +109,6 @@ static const struct rtc_ops_s g_rtc_ops =
|
|||
.cancelalarm = rtc_lh_cancelalarm,
|
||||
.rdalarm = rtc_lh_rdalarm,
|
||||
#endif
|
||||
#ifdef CONFIG_RTC_PERIODIC
|
||||
.setperiodic = NULL,
|
||||
.cancelperiodic = NULL,
|
||||
#endif
|
||||
#ifdef CONFIG_RTC_IOCTL
|
||||
.ioctl = NULL,
|
||||
#endif
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
.destroy = NULL,
|
||||
#endif
|
||||
};
|
||||
|
||||
/* ESP32-C3 RTC device state */
|
||||
|
|
|
|||
|
|
@ -254,13 +254,6 @@ static const struct file_operations g_keypadops =
|
|||
NULL, /* open */
|
||||
NULL, /* close */
|
||||
keypad_read, /* read */
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
NULL, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -235,11 +235,6 @@ static const struct file_operations g_vgaops =
|
|||
vga_read, /* read */
|
||||
vga_write, /* write */
|
||||
vga_seek, /* seek */
|
||||
NULL, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -56,13 +56,6 @@ static const struct file_operations g_rngops =
|
|||
NULL, /* open */
|
||||
NULL, /* close */
|
||||
x86_rngread, /* read */
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
NULL, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -148,10 +148,6 @@ static const struct file_operations g_himemfops =
|
|||
himem_write, /* write */
|
||||
NULL, /* seek */
|
||||
himem_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -109,16 +109,6 @@ static const struct rtc_ops_s g_rtc_ops =
|
|||
.cancelalarm = rtc_lh_cancelalarm,
|
||||
.rdalarm = rtc_lh_rdalarm,
|
||||
#endif
|
||||
#ifdef CONFIG_RTC_PERIODIC
|
||||
.setperiodic = NULL,
|
||||
.cancelperiodic = NULL,
|
||||
#endif
|
||||
#ifdef CONFIG_RTC_IOCTL
|
||||
.ioctl = NULL,
|
||||
#endif
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
.destroy = NULL,
|
||||
#endif
|
||||
};
|
||||
|
||||
/* ESP32 RTC device state */
|
||||
|
|
|
|||
|
|
@ -119,16 +119,6 @@ static const struct rtc_ops_s g_rtc_ops =
|
|||
ez80_cancelalarm, /* cancelalarm */
|
||||
ez80_rdalarm /* rdalarm */
|
||||
#endif
|
||||
#ifdef CONFIG_RTC_PERIODIC
|
||||
, NULL, /* setperiodic */
|
||||
NULL /* cancelperiodic */
|
||||
#endif
|
||||
#ifdef CONFIG_RTC_IOCTL
|
||||
, NULL /* ioctl */
|
||||
#endif
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* destroy */
|
||||
#endif
|
||||
};
|
||||
|
||||
/* eZ80 RTC device state */
|
||||
|
|
|
|||
|
|
@ -121,10 +121,6 @@ static const struct file_operations g_audioops =
|
|||
audio_write, /* write */
|
||||
NULL, /* seek */
|
||||
audio_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -173,10 +173,6 @@ static const struct file_operations g_ak09912fops =
|
|||
ak09912_write, /* write */
|
||||
NULL, /* seek */
|
||||
ak09912_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/* Take XYZ data, temperature and Status 2 register.
|
||||
|
|
|
|||
|
|
@ -183,10 +183,6 @@ static const struct file_operations g_apds9930alsfops =
|
|||
apds9930_write, /* write */
|
||||
NULL, /* seek */
|
||||
apds9930_ioctl_als, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/* Proximity sensor */
|
||||
|
|
@ -199,10 +195,6 @@ static const struct file_operations g_apds9930psfops =
|
|||
apds9930_write, /* write */
|
||||
NULL, /* seek */
|
||||
apds9930_ioctl_ps, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/* SCU instructions for pick ambient light sensing data. */
|
||||
|
|
|
|||
|
|
@ -105,10 +105,6 @@ static const struct file_operations g_bh1721fvcfops =
|
|||
bh1721fvc_write, /* write */
|
||||
NULL, /* seek */
|
||||
bh1721fvc_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/* Take ambient light data. */
|
||||
|
|
|
|||
|
|
@ -127,10 +127,6 @@ static const struct file_operations g_bh1745nucfops =
|
|||
bh1745nuc_write, /* write */
|
||||
NULL, /* seek */
|
||||
bh1745nuc_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/* Take color data. */
|
||||
|
|
|
|||
|
|
@ -127,10 +127,6 @@ static const struct file_operations g_bm1383glvfops =
|
|||
bm1383glv_write, /* write */
|
||||
NULL, /* seek */
|
||||
bm1383glv_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/* Device is not BM1383AGLV but BM1383GLV */
|
||||
|
|
|
|||
|
|
@ -141,10 +141,6 @@ static const struct file_operations g_bm1422gmvfops =
|
|||
bm1422gmv_write, /* write */
|
||||
NULL, /* seek */
|
||||
bm1422gmv_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/* Take XYZ data. */
|
||||
|
|
|
|||
|
|
@ -297,10 +297,6 @@ static const struct file_operations g_bmi160gyrofops =
|
|||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
bmi160_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
static const struct file_operations g_bmi160accelfops =
|
||||
|
|
@ -311,10 +307,6 @@ static const struct file_operations g_bmi160accelfops =
|
|||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
bmi160_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/* SCU instructions for pick gyro sensing data. */
|
||||
|
|
|
|||
|
|
@ -177,9 +177,6 @@ static const struct file_operations g_bmp280pressfops =
|
|||
bmp280_write, /* write */
|
||||
NULL, /* seek */
|
||||
bmp280_ioctl_press /* ioctl */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
static const struct file_operations g_bmp280tempfops =
|
||||
|
|
@ -190,9 +187,6 @@ static const struct file_operations g_bmp280tempfops =
|
|||
bmp280_write, /* write */
|
||||
NULL, /* seek */
|
||||
bmp280_ioctl_temp /* ioctl */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/* SCU instructions for pick pressure sensing data. */
|
||||
|
|
|
|||
|
|
@ -131,10 +131,6 @@ static const struct file_operations g_kx022fops =
|
|||
kx022_write, /* write */
|
||||
NULL, /* seek */
|
||||
kx022_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/* Take XYZ data. */
|
||||
|
|
|
|||
|
|
@ -178,10 +178,6 @@ static const struct file_operations g_lt1pa01alsfops =
|
|||
lt1pa01_write, /* write */
|
||||
NULL, /* seek */
|
||||
lt1pa01_ioctl_als, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/* Proximity sensor */
|
||||
|
|
@ -194,10 +190,6 @@ static const struct file_operations g_lt1pa01proxfops =
|
|||
lt1pa01_write, /* write */
|
||||
NULL, /* seek */
|
||||
lt1pa01_ioctl_prox, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/* SCU instructions for pick ambient light sensing data. */
|
||||
|
|
|
|||
|
|
@ -166,10 +166,6 @@ static const struct file_operations g_rpr0521rsalsfops =
|
|||
rpr0521rs_write, /* write */
|
||||
NULL, /* seek */
|
||||
rpr0521rs_ioctl_als, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/* Proximity sensor */
|
||||
|
|
@ -182,10 +178,6 @@ static const struct file_operations g_rpr0521rspsfops =
|
|||
rpr0521rs_write, /* write */
|
||||
NULL, /* seek */
|
||||
rpr0521rs_ioctl_ps, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/* SCU instructions for pick ambient light sensing data. */
|
||||
|
|
|
|||
|
|
@ -86,13 +86,6 @@ static const struct file_operations tsi_ops =
|
|||
NULL, /* open */
|
||||
NULL, /* close */
|
||||
tsi_read, /* read */
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
NULL, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -87,13 +87,6 @@ static const struct file_operations tsi_ops =
|
|||
NULL, /* open */
|
||||
NULL, /* close */
|
||||
tsi_read, /* read */
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
NULL, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -99,12 +99,6 @@ static const struct file_operations smbus_sbd_fops =
|
|||
#endif
|
||||
smbus_sbd_read, /* read */
|
||||
smbus_sbd_write, /* write */
|
||||
NULL, /* seek */
|
||||
NULL, /* ioctl */
|
||||
NULL, /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
NULL, /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -299,9 +299,6 @@ static const struct file_operations g_slcdops =
|
|||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
slcd_poll /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/* LCD state data */
|
||||
|
|
|
|||
|
|
@ -271,9 +271,6 @@ static const struct file_operations tc_fops =
|
|||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
tc_poll /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/* If only a single touchscreen device is supported, then the driver state
|
||||
|
|
|
|||
|
|
@ -349,9 +349,6 @@ static const struct file_operations g_slcdops =
|
|||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
slcd_poll /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/* LCD state data */
|
||||
|
|
|
|||
|
|
@ -252,9 +252,6 @@ static const struct file_operations tc_fops =
|
|||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
tc_poll /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/* If only a single touchscreen device is supported, then the driver state
|
||||
|
|
|
|||
|
|
@ -184,9 +184,6 @@ static const struct file_operations g_lcdops =
|
|||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
lcd_poll /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/* This is the driver state structure */
|
||||
|
|
|
|||
|
|
@ -75,9 +75,6 @@ static const struct file_operations g_adc_fops =
|
|||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
adc_poll /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
static const struct adc_callback_s g_adc_callback =
|
||||
|
|
|
|||
|
|
@ -107,10 +107,6 @@ static const struct file_operations g_ads1242_fops =
|
|||
ads1242_write, /* write */
|
||||
NULL, /* seek */
|
||||
ads1242_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -68,9 +68,6 @@ static const struct file_operations comp_fops =
|
|||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
comp_poll /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
static const struct comp_callback_s g_comp_callback =
|
||||
|
|
|
|||
|
|
@ -69,10 +69,6 @@ static const struct file_operations dac_fops =
|
|||
dac_write, /* write */
|
||||
NULL, /* seek */
|
||||
dac_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -57,10 +57,6 @@ static const struct file_operations opamp_fops =
|
|||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
opamp_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -170,12 +170,6 @@ static const struct file_operations g_toneops =
|
|||
tone_close, /* close */
|
||||
tone_read, /* read */
|
||||
tone_write, /* write */
|
||||
NULL, /* seek */
|
||||
NULL, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -138,9 +138,6 @@ static const struct file_operations g_canops =
|
|||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
can_poll /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -114,10 +114,6 @@ static const struct file_operations g_mfrc522fops =
|
|||
mfrc522_write, /* write */
|
||||
NULL, /* seek */
|
||||
mfrc522_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -110,10 +110,6 @@ static const struct file_operations g_pn532fops =
|
|||
_write, /* write */
|
||||
NULL, /* seek */
|
||||
_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
static const uint8_t pn532ack[] =
|
||||
|
|
|
|||
|
|
@ -103,9 +103,6 @@ static const struct file_operations g_urand_fops =
|
|||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
devurand_poll /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
#ifdef CONFIG_DEV_URANDOM_XORSHIFT128
|
||||
|
|
|
|||
|
|
@ -239,10 +239,6 @@ static const struct file_operations ee24xx_fops =
|
|||
ee24xx_write, /* write */
|
||||
ee24xx_seek, /* seek */
|
||||
ee24xx_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
#ifdef CONFIG_AT24CS_UUID
|
||||
|
|
@ -251,13 +247,6 @@ static const struct file_operations at24cs_uuid_fops =
|
|||
ee24xx_open, /* piggyback on the ee24xx_open */
|
||||
ee24xx_close, /* piggyback on the ee24xx_close */
|
||||
at24cs_read_uuid, /* read */
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
NULL, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -276,10 +276,6 @@ static const struct file_operations ee25xx_fops =
|
|||
ee25xx_write, /* write */
|
||||
ee25xx_seek, /* seek */
|
||||
ee25xx_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -84,10 +84,6 @@ static const struct file_operations g_efuseops =
|
|||
efuse_write, /* write */
|
||||
NULL, /* seek */
|
||||
efuse_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -112,10 +112,6 @@ static const struct file_operations i2schar_fops =
|
|||
i2schar_write, /* write */
|
||||
NULL, /* seek */
|
||||
i2schar_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -64,10 +64,6 @@ static const struct file_operations g_gpio_drvrops =
|
|||
gpio_write, /* write */
|
||||
gpio_seek, /* seek */
|
||||
gpio_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -50,9 +50,7 @@
|
|||
|
||||
static const struct file_operations ipcc_fops =
|
||||
{
|
||||
#ifdef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
.unlink = NULL,
|
||||
#else /* CONFIG_DISABLE_PSEUDOFS_OPERATIONS */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
.unlink = ipcc_unlink,
|
||||
#endif /* CONFIG_DISABLE_PSEUDOFS_OPERATIONS */
|
||||
.open = ipcc_open,
|
||||
|
|
@ -60,8 +58,6 @@ static const struct file_operations ipcc_fops =
|
|||
.poll = ipcc_poll,
|
||||
.read = ipcc_read,
|
||||
.write = ipcc_write,
|
||||
.ioctl = NULL,
|
||||
.seek = NULL
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -152,10 +152,6 @@ static const struct file_operations g_ht16k33fops =
|
|||
ht16k33_write, /* write */
|
||||
ht16k33_seek, /* seek */
|
||||
ht16k33_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -74,10 +74,6 @@ static const struct file_operations lcddev_fops =
|
|||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
lcddev_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -108,10 +108,6 @@ static const struct file_operations g_st7032fops =
|
|||
st7032_write, /* write */
|
||||
st7032_seek, /* seek */
|
||||
st7032_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -75,12 +75,6 @@ static const struct file_operations g_apa102fops =
|
|||
NULL, /* close */
|
||||
apa102_read, /* read */
|
||||
apa102_write, /* write */
|
||||
NULL, /* seek */
|
||||
NULL, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -165,10 +165,6 @@ static const struct file_operations g_lp503x_fileops =
|
|||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
lp503x_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -85,12 +85,6 @@ static const struct file_operations g_max7219fops =
|
|||
NULL, /* close */
|
||||
max7219_read, /* read */
|
||||
max7219_write, /* write */
|
||||
NULL, /* seek */
|
||||
NULL, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -73,10 +73,6 @@ static const struct file_operations g_ncp5623c_fileops =
|
|||
ncp5623c_write, /* write */
|
||||
NULL, /* seek */
|
||||
ncp5623c_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -72,10 +72,6 @@ static const struct file_operations g_pca9635pw_fileops =
|
|||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
pca9635pw_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -89,12 +89,6 @@ static const struct file_operations g_rgbledops =
|
|||
rgbled_close, /* close */
|
||||
rgbled_read, /* read */
|
||||
rgbled_write, /* write */
|
||||
NULL, /* seek */
|
||||
NULL, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -105,10 +105,6 @@ static const struct file_operations userled_fops =
|
|||
userled_write, /* write */
|
||||
NULL, /* seek */
|
||||
userled_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -172,11 +172,6 @@ static const struct file_operations g_ws2812fops =
|
|||
ws2812_read, /* read */
|
||||
ws2812_write, /* write */
|
||||
ws2812_seek, /* seek */
|
||||
NULL, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -57,10 +57,6 @@ static const struct file_operations g_loop_fops =
|
|||
loop_write, /* write */
|
||||
NULL, /* seek */
|
||||
loop_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -92,10 +92,6 @@ static const struct block_operations g_bops =
|
|||
loop_read, /* read */
|
||||
loop_write, /* write */
|
||||
loop_geometry, /* geometry */
|
||||
NULL /* ioctl */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -79,10 +79,6 @@ static const struct file_operations g_cordicops =
|
|||
cordic_write, /* write */
|
||||
NULL, /* seek */
|
||||
cordic_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -60,9 +60,6 @@ static const struct file_operations devnull_fops =
|
|||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
devnull_poll /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue