mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
drivers: remove unimplemented open/close/ioctl interfaces
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
committed by
Xiang Xiao
parent
6041a2f0db
commit
09b3fb25ab
@@ -221,8 +221,6 @@ static ssize_t adb_char_read(FAR struct file *filep, FAR char *buffer,
|
||||
size_t len);
|
||||
static ssize_t adb_char_write(FAR struct file *filep,
|
||||
FAR const char *buffer, size_t len);
|
||||
static int adb_char_ioctl(FAR struct file *filep, int cmd,
|
||||
unsigned long arg);
|
||||
static int adb_char_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
||||
bool setup);
|
||||
|
||||
@@ -257,7 +255,7 @@ static const struct file_operations g_adb_fops =
|
||||
adb_char_read, /* read */
|
||||
adb_char_write, /* write */
|
||||
NULL, /* seek */
|
||||
adb_char_ioctl, /* ioctl */
|
||||
NULL, /* ioctl */
|
||||
adb_char_poll /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
@@ -1964,12 +1962,6 @@ errout:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int adb_char_ioctl(FAR struct file *filep, int cmd,
|
||||
unsigned long arg)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static int adb_char_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
||||
bool setup)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user