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
-4
View File
@@ -205,10 +205,6 @@ static const struct file_operations g_adcops =
NULL, /* write */ NULL, /* write */
NULL, /* seek */ NULL, /* seek */
cxd56_adc_ioctl, /* ioctl */ 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) #if defined (CONFIG_CXD56_LPADC0) || defined (CONFIG_CXD56_LPADC0_1) || defined (CONFIG_CXD56_LPADC_ALL)
-4
View File
@@ -97,10 +97,6 @@ static const struct file_operations g_chargerops =
charger_write, /* write */ charger_write, /* write */
NULL, /* seek */ NULL, /* seek */
charger_ioctl, /* ioctl */ charger_ioctl, /* ioctl */
NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
}; };
static struct charger_dev_s g_chargerdev = static struct charger_dev_s g_chargerdev =
-4
View File
@@ -82,10 +82,6 @@ static const struct file_operations g_gaugeops =
gauge_write, /* write */ gauge_write, /* write */
NULL, /* seek */ NULL, /* seek */
gauge_ioctl, /* ioctl */ gauge_ioctl, /* ioctl */
NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
}; };
static struct bat_gauge_dev_s g_gaugedev = static struct bat_gauge_dev_s g_gaugedev =
-3
View File
@@ -109,9 +109,6 @@ static const struct file_operations g_geofencefops =
NULL, /* truncate */ NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
cxd56_geofence_poll /* poll */ cxd56_geofence_poll /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
}; };
/* ioctl command list */ /* ioctl command list */
-3
View File
@@ -320,9 +320,6 @@ static const struct file_operations g_gnssfops =
NULL, /* truncate */ NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
cxd56_gnss_poll /* poll */ cxd56_gnss_poll /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
}; };
/* GNSS ioctl command list */ /* GNSS ioctl command list */
@@ -114,12 +114,6 @@ static const struct rtc_ops_s g_rtc_ops =
.setrelative = cxd56_setrelative, .setrelative = cxd56_setrelative,
.cancelalarm = cxd56_cancelalarm, .cancelalarm = cxd56_cancelalarm,
#endif #endif
#ifdef CONFIG_RTC_IOCTL
.ioctl = NULL,
#endif
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
.destroy = NULL,
#endif
}; };
/* CXD56 RTC device state */ /* CXD56 RTC device state */
-10
View File
@@ -112,16 +112,6 @@ static const struct rtc_ops_s g_rtc_ops =
.cancelalarm = imxrt_cancelalarm, .cancelalarm = imxrt_cancelalarm,
.rdalarm = imxrt_rdalarm, .rdalarm = imxrt_rdalarm,
#endif #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 */ /* i.MXRT RTC device state */
@@ -109,19 +109,12 @@ static const struct rtc_ops_s g_rtc_ops =
{ {
.rdtime = kinetis_rdtime, .rdtime = kinetis_rdtime,
.settime = kinetis_settime, .settime = kinetis_settime,
.havesettime = NULL,
#ifdef CONFIG_RTC_ALARM #ifdef CONFIG_RTC_ALARM
.setalarm = kinetis_setalarm, .setalarm = kinetis_setalarm,
.setrelative = kinetis_setrelative, .setrelative = kinetis_setrelative,
.cancelalarm = kinetis_cancelalarm, .cancelalarm = kinetis_cancelalarm,
.rdalarm = kinetis_rdalarm, .rdalarm = kinetis_rdalarm,
#endif #endif
#ifdef CONFIG_RTC_IOCTL
.ioctl = NULL,
#endif
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
.destroy = NULL,
#endif
}; };
/* Kinetis RTC device operations */ /* Kinetis RTC device operations */
-7
View File
@@ -65,13 +65,6 @@ static const struct file_operations g_rngops =
NULL, /* open */ NULL, /* open */
NULL, /* close */ NULL, /* close */
lpc54_read, /* read */ 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, .setperiodic = lpc54_setperiodic,
.cancelperiodic = lpc54_cancelperiodic, .cancelperiodic = lpc54_cancelperiodic,
#endif #endif
#ifdef CONFIG_RTC_IOCTL
.ioctl = NULL,
#endif
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
.destroy = NULL,
#endif
}; };
/* LPC54 RTC device state */ /* LPC54 RTC device state */
@@ -139,12 +139,6 @@ static const struct rtc_ops_s g_rtc_ops =
.setperiodic = max326_setperiodic, .setperiodic = max326_setperiodic,
.cancelperiodic = max326_cancelperiodic, .cancelperiodic = max326_cancelperiodic,
#endif #endif
#ifdef CONFIG_RTC_IOCTL
.ioctl = NULL,
#endif
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
.destroy = NULL,
#endif
}; };
/* RTC device state */ /* RTC device state */
-4
View File
@@ -74,10 +74,6 @@ static const struct file_operations g_stub_drvrops =
phyplus_stub_write, /* write */ phyplus_stub_write, /* write */
phyplus_stub_seek, /* seek */ phyplus_stub_seek, /* seek */
phyplus_stub_ioctl, /* ioctl */ phyplus_stub_ioctl, /* ioctl */
NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
}; };
/* static struct gpio_dev_s stub_dev; */ /* static struct gpio_dev_s stub_dev; */
-7
View File
@@ -85,13 +85,6 @@ static const struct file_operations g_trngops =
NULL, /* open */ NULL, /* open */
NULL, /* close */ NULL, /* close */
sam_read, /* read */ sam_read, /* read */
NULL, /* write */
NULL, /* seek */
NULL, /* ioctl */
NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
}; };
/**************************************************************************** /****************************************************************************
-3
View File
@@ -252,9 +252,6 @@ static const struct file_operations g_tsdops =
NULL, /* truncate */ NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
sam_tsd_poll /* poll */ sam_tsd_poll /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
}; };
/* The driver state structure is pre-allocated. */ /* The driver state structure is pre-allocated. */
-7
View File
@@ -85,13 +85,6 @@ static const struct file_operations g_trngops =
NULL, /* open */ NULL, /* open */
NULL, /* close */ NULL, /* close */
sam_read, /* read */ sam_read, /* read */
NULL, /* write */
NULL, /* seek */
NULL, /* ioctl */
NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
}; };
/**************************************************************************** /****************************************************************************
-4
View File
@@ -795,10 +795,6 @@ static const struct file_operations hrtim_fops =
NULL, /* write */ NULL, /* write */
NULL, /* seek */ NULL, /* seek */
stm32_hrtim_ioctl, /* ioctl */ stm32_hrtim_ioctl, /* ioctl */
NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
}; };
#endif /* CONFIG_STM32_HRTIM_DISABLE_CHARDRV */ #endif /* CONFIG_STM32_HRTIM_DISABLE_CHARDRV */
-7
View File
@@ -81,13 +81,6 @@ static const struct file_operations g_rngops =
NULL, /* open */ NULL, /* open */
NULL, /* close */ NULL, /* close */
stm32_rng_read, /* read */ stm32_rng_read, /* read */
NULL, /* write */
NULL, /* seek */
NULL, /* ioctl */
NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
}; };
/**************************************************************************** /****************************************************************************
-6
View File
@@ -146,12 +146,6 @@ static const struct rtc_ops_s g_rtc_ops =
.setperiodic = stm32_setperiodic, .setperiodic = stm32_setperiodic,
.cancelperiodic = stm32_cancelperiodic, .cancelperiodic = stm32_cancelperiodic,
#endif #endif
#ifdef CONFIG_RTC_IOCTL
.ioctl = NULL,
#endif
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
.destroy = NULL,
#endif
}; };
/* STM32 RTC device state */ /* STM32 RTC device state */
-7
View File
@@ -81,13 +81,6 @@ static const struct file_operations g_rngops =
NULL, /* open */ NULL, /* open */
NULL, /* close */ NULL, /* close */
stm32_rng_read, /* read */ stm32_rng_read, /* read */
NULL, /* write */
NULL, /* seek */
NULL, /* ioctl */
NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
}; };
/**************************************************************************** /****************************************************************************
-7
View File
@@ -80,13 +80,6 @@ static const struct file_operations g_rngops =
NULL, /* open */ NULL, /* open */
NULL, /* close */ NULL, /* close */
stm32_rngread, /* read */ 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, .setperiodic = stm32_setperiodic,
.cancelperiodic = stm32_cancelperiodic, .cancelperiodic = stm32_cancelperiodic,
#endif #endif
#ifdef CONFIG_RTC_IOCTL
.ioctl = NULL,
#endif
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
.destroy = NULL,
#endif
}; };
/* STM32 RTC device state */ /* STM32 RTC device state */
@@ -143,12 +143,6 @@ static const struct rtc_ops_s g_rtc_ops =
.setperiodic = stm32_setperiodic, .setperiodic = stm32_setperiodic,
.cancelperiodic = stm32_cancelperiodic, .cancelperiodic = stm32_cancelperiodic,
#endif #endif
#ifdef CONFIG_RTC_IOCTL
.ioctl = NULL,
#endif
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
.destroy = NULL,
#endif
}; };
/* STM32 RTC device state */ /* STM32 RTC device state */
-7
View File
@@ -81,13 +81,6 @@ static const struct file_operations g_rngops =
NULL, /* open */ NULL, /* open */
NULL, /* close */ NULL, /* close */
stm32l4_rngread, /* read */ 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, .setperiodic = stm32l4_setperiodic,
.cancelperiodic = stm32l4_cancelperiodic, .cancelperiodic = stm32l4_cancelperiodic,
#endif #endif
#ifdef CONFIG_RTC_IOCTL
.ioctl = NULL,
#endif
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
.destroy = NULL,
#endif
}; };
/* STM32L4 RTC device state */ /* STM32L4 RTC device state */
@@ -141,12 +141,6 @@ static const struct rtc_ops_s g_rtc_ops =
.setperiodic = stm32wb_setperiodic, .setperiodic = stm32wb_setperiodic,
.cancelperiodic = stm32wb_cancelperiodic, .cancelperiodic = stm32wb_cancelperiodic,
#endif #endif
#ifdef CONFIG_RTC_IOCTL
.ioctl = NULL,
#endif
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
.destroy = NULL,
#endif
}; };
/* STM32WB RTC device state */ /* STM32WB RTC device state */
-4
View File
@@ -119,10 +119,6 @@ static const struct file_operations g_consoleops =
spi_console_write, /* write */ spi_console_write, /* write */
NULL, /* seek */ NULL, /* seek */
spi_console_ioctl, /* ioctl */ 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, .setperiodic = rx65n_setperiodic,
.cancelperiodic = rx65n_cancelperiodic, .cancelperiodic = rx65n_cancelperiodic,
#endif #endif
#ifdef CONFIG_RTC_IOCTL
.ioctl = NULL,
#endif
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
.destroy = NULL,
#endif
}; };
/* RX65N RTC device state */ /* RX65N RTC device state */
@@ -142,12 +142,6 @@ static const struct rtc_ops_s g_rtc_ops =
.setperiodic = bl602_setperiodic, .setperiodic = bl602_setperiodic,
.cancelperiodic = bl602_cancelperiodic, .cancelperiodic = bl602_cancelperiodic,
#endif #endif
#ifdef CONFIG_RTC_IOCTL
.ioctl = NULL,
#endif
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
.destroy = NULL,
#endif
}; };
/* BL602 RTC device state */ /* BL602 RTC device state */
@@ -109,16 +109,6 @@ static const struct rtc_ops_s g_rtc_ops =
.cancelalarm = rtc_lh_cancelalarm, .cancelalarm = rtc_lh_cancelalarm,
.rdalarm = rtc_lh_rdalarm, .rdalarm = rtc_lh_rdalarm,
#endif #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 */ /* ESP32-C3 RTC device state */
-7
View File
@@ -254,13 +254,6 @@ static const struct file_operations g_keypadops =
NULL, /* open */ NULL, /* open */
NULL, /* close */ NULL, /* close */
keypad_read, /* read */ keypad_read, /* read */
NULL, /* write */
NULL, /* seek */
NULL, /* ioctl */
NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
}; };
/**************************************************************************** /****************************************************************************
-5
View File
@@ -235,11 +235,6 @@ static const struct file_operations g_vgaops =
vga_read, /* read */ vga_read, /* read */
vga_write, /* write */ vga_write, /* write */
vga_seek, /* seek */ vga_seek, /* seek */
NULL, /* ioctl */
NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
}; };
/**************************************************************************** /****************************************************************************
-7
View File
@@ -56,13 +56,6 @@ static const struct file_operations g_rngops =
NULL, /* open */ NULL, /* open */
NULL, /* close */ NULL, /* close */
x86_rngread, /* read */ x86_rngread, /* read */
NULL, /* write */
NULL, /* seek */
NULL, /* ioctl */
NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
}; };
/**************************************************************************** /****************************************************************************
-4
View File
@@ -148,10 +148,6 @@ static const struct file_operations g_himemfops =
himem_write, /* write */ himem_write, /* write */
NULL, /* seek */ NULL, /* seek */
himem_ioctl, /* ioctl */ 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, .cancelalarm = rtc_lh_cancelalarm,
.rdalarm = rtc_lh_rdalarm, .rdalarm = rtc_lh_rdalarm,
#endif #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 */ /* ESP32 RTC device state */
-10
View File
@@ -119,16 +119,6 @@ static const struct rtc_ops_s g_rtc_ops =
ez80_cancelalarm, /* cancelalarm */ ez80_cancelalarm, /* cancelalarm */
ez80_rdalarm /* rdalarm */ ez80_rdalarm /* rdalarm */
#endif #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 */ /* eZ80 RTC device state */
-4
View File
@@ -121,10 +121,6 @@ static const struct file_operations g_audioops =
audio_write, /* write */ audio_write, /* write */
NULL, /* seek */ NULL, /* seek */
audio_ioctl, /* ioctl */ 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 */ ak09912_write, /* write */
NULL, /* seek */ NULL, /* seek */
ak09912_ioctl, /* ioctl */ ak09912_ioctl, /* ioctl */
NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
}; };
/* Take XYZ data, temperature and Status 2 register. /* Take XYZ data, temperature and Status 2 register.
@@ -183,10 +183,6 @@ static const struct file_operations g_apds9930alsfops =
apds9930_write, /* write */ apds9930_write, /* write */
NULL, /* seek */ NULL, /* seek */
apds9930_ioctl_als, /* ioctl */ apds9930_ioctl_als, /* ioctl */
NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
}; };
/* Proximity sensor */ /* Proximity sensor */
@@ -199,10 +195,6 @@ static const struct file_operations g_apds9930psfops =
apds9930_write, /* write */ apds9930_write, /* write */
NULL, /* seek */ NULL, /* seek */
apds9930_ioctl_ps, /* ioctl */ apds9930_ioctl_ps, /* ioctl */
NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
}; };
/* SCU instructions for pick ambient light sensing data. */ /* SCU instructions for pick ambient light sensing data. */
@@ -105,10 +105,6 @@ static const struct file_operations g_bh1721fvcfops =
bh1721fvc_write, /* write */ bh1721fvc_write, /* write */
NULL, /* seek */ NULL, /* seek */
bh1721fvc_ioctl, /* ioctl */ bh1721fvc_ioctl, /* ioctl */
NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
}; };
/* Take ambient light data. */ /* Take ambient light data. */
@@ -127,10 +127,6 @@ static const struct file_operations g_bh1745nucfops =
bh1745nuc_write, /* write */ bh1745nuc_write, /* write */
NULL, /* seek */ NULL, /* seek */
bh1745nuc_ioctl, /* ioctl */ bh1745nuc_ioctl, /* ioctl */
NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
}; };
/* Take color data. */ /* Take color data. */
@@ -127,10 +127,6 @@ static const struct file_operations g_bm1383glvfops =
bm1383glv_write, /* write */ bm1383glv_write, /* write */
NULL, /* seek */ NULL, /* seek */
bm1383glv_ioctl, /* ioctl */ bm1383glv_ioctl, /* ioctl */
NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
}; };
/* Device is not BM1383AGLV but BM1383GLV */ /* Device is not BM1383AGLV but BM1383GLV */
@@ -141,10 +141,6 @@ static const struct file_operations g_bm1422gmvfops =
bm1422gmv_write, /* write */ bm1422gmv_write, /* write */
NULL, /* seek */ NULL, /* seek */
bm1422gmv_ioctl, /* ioctl */ bm1422gmv_ioctl, /* ioctl */
NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
}; };
/* Take XYZ data. */ /* Take XYZ data. */
@@ -297,10 +297,6 @@ static const struct file_operations g_bmi160gyrofops =
NULL, /* write */ NULL, /* write */
NULL, /* seek */ NULL, /* seek */
bmi160_ioctl, /* ioctl */ bmi160_ioctl, /* ioctl */
NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
}; };
static const struct file_operations g_bmi160accelfops = static const struct file_operations g_bmi160accelfops =
@@ -311,10 +307,6 @@ static const struct file_operations g_bmi160accelfops =
NULL, /* write */ NULL, /* write */
NULL, /* seek */ NULL, /* seek */
bmi160_ioctl, /* ioctl */ bmi160_ioctl, /* ioctl */
NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
}; };
/* SCU instructions for pick gyro sensing data. */ /* SCU instructions for pick gyro sensing data. */
@@ -177,9 +177,6 @@ static const struct file_operations g_bmp280pressfops =
bmp280_write, /* write */ bmp280_write, /* write */
NULL, /* seek */ NULL, /* seek */
bmp280_ioctl_press /* ioctl */ bmp280_ioctl_press /* ioctl */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
}; };
static const struct file_operations g_bmp280tempfops = static const struct file_operations g_bmp280tempfops =
@@ -190,9 +187,6 @@ static const struct file_operations g_bmp280tempfops =
bmp280_write, /* write */ bmp280_write, /* write */
NULL, /* seek */ NULL, /* seek */
bmp280_ioctl_temp /* ioctl */ bmp280_ioctl_temp /* ioctl */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
}; };
/* SCU instructions for pick pressure sensing data. */ /* SCU instructions for pick pressure sensing data. */
@@ -131,10 +131,6 @@ static const struct file_operations g_kx022fops =
kx022_write, /* write */ kx022_write, /* write */
NULL, /* seek */ NULL, /* seek */
kx022_ioctl, /* ioctl */ kx022_ioctl, /* ioctl */
NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
}; };
/* Take XYZ data. */ /* Take XYZ data. */
@@ -178,10 +178,6 @@ static const struct file_operations g_lt1pa01alsfops =
lt1pa01_write, /* write */ lt1pa01_write, /* write */
NULL, /* seek */ NULL, /* seek */
lt1pa01_ioctl_als, /* ioctl */ lt1pa01_ioctl_als, /* ioctl */
NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
}; };
/* Proximity sensor */ /* Proximity sensor */
@@ -194,10 +190,6 @@ static const struct file_operations g_lt1pa01proxfops =
lt1pa01_write, /* write */ lt1pa01_write, /* write */
NULL, /* seek */ NULL, /* seek */
lt1pa01_ioctl_prox, /* ioctl */ lt1pa01_ioctl_prox, /* ioctl */
NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
}; };
/* SCU instructions for pick ambient light sensing data. */ /* SCU instructions for pick ambient light sensing data. */
@@ -166,10 +166,6 @@ static const struct file_operations g_rpr0521rsalsfops =
rpr0521rs_write, /* write */ rpr0521rs_write, /* write */
NULL, /* seek */ NULL, /* seek */
rpr0521rs_ioctl_als, /* ioctl */ rpr0521rs_ioctl_als, /* ioctl */
NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
}; };
/* Proximity sensor */ /* Proximity sensor */
@@ -182,10 +178,6 @@ static const struct file_operations g_rpr0521rspsfops =
rpr0521rs_write, /* write */ rpr0521rs_write, /* write */
NULL, /* seek */ NULL, /* seek */
rpr0521rs_ioctl_ps, /* ioctl */ rpr0521rs_ioctl_ps, /* ioctl */
NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
}; };
/* SCU instructions for pick ambient light sensing data. */ /* SCU instructions for pick ambient light sensing data. */
-7
View File
@@ -86,13 +86,6 @@ static const struct file_operations tsi_ops =
NULL, /* open */ NULL, /* open */
NULL, /* close */ NULL, /* close */
tsi_read, /* read */ tsi_read, /* read */
NULL, /* write */
NULL, /* seek */
NULL, /* ioctl */
NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
#endif
}; };
/**************************************************************************** /****************************************************************************
-7
View File
@@ -87,13 +87,6 @@ static const struct file_operations tsi_ops =
NULL, /* open */ NULL, /* open */
NULL, /* close */ NULL, /* close */
tsi_read, /* read */ 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 #endif
smbus_sbd_read, /* read */ smbus_sbd_read, /* read */
smbus_sbd_write, /* write */ smbus_sbd_write, /* write */
NULL, /* seek */
NULL, /* ioctl */
NULL, /* 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