mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +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
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user