Remove empty ADC write method. From Kosma Moczek

This commit is contained in:
Gregory Nutt 2014-06-30 07:55:28 -06:00
parent f1dcb6674a
commit dd8bb71cbc

View File

@ -68,7 +68,6 @@
static int adc_open(FAR struct file *filep); static int adc_open(FAR struct file *filep);
static int adc_close(FAR struct file *filep); static int adc_close(FAR struct file *filep);
static ssize_t adc_read(FAR struct file *, FAR char *, size_t); static ssize_t adc_read(FAR struct file *, FAR char *, size_t);
static ssize_t adc_write(FAR struct file *filep, FAR const char *buffer, size_t buflen);
static int adc_ioctl(FAR struct file *filep,int cmd,unsigned long arg); static int adc_ioctl(FAR struct file *filep,int cmd,unsigned long arg);
/**************************************************************************** /****************************************************************************
@ -80,7 +79,7 @@ static const struct file_operations adc_fops =
adc_open, /* open */ adc_open, /* open */
adc_close, /* close */ adc_close, /* close */
adc_read, /* read */ adc_read, /* read */
adc_write, /* write */ 0, /* write */
0, /* seek */ 0, /* seek */
adc_ioctl /* ioctl */ adc_ioctl /* ioctl */
#ifndef CONFIG_DISABLE_POLL #ifndef CONFIG_DISABLE_POLL
@ -347,15 +346,6 @@ return_with_irqdisabled:
return ret; return ret;
} }
/************************************************************************************
* Name: adc_write
************************************************************************************/
static ssize_t adc_write(FAR struct file *filep, FAR const char *buffer, size_t buflen)
{
return 0;
}
/************************************************************************************ /************************************************************************************
* Name: adc_ioctl * Name: adc_ioctl
************************************************************************************/ ************************************************************************************/