mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
Change FIOC_MMAP into file operation call
- Add mmap into file_operations and remove it from ioctl definitions. - Add mm_map structure definitions to support future unmapping - Modify all drivers to initialize the operations struct accordingly Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
41e9df2f3e
commit
f33dc4df3f
@@ -135,6 +135,7 @@ static const struct file_operations g_ft80x_fops =
|
||||
NULL, /* seek */
|
||||
ft80x_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, ft80x_unlink /* unlink */
|
||||
|
||||
@@ -118,6 +118,7 @@ static const struct file_operations g_pcf8574_lcd_fops =
|
||||
pcf8574_lcd_seek, /* seek */
|
||||
pcf8574_lcd_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
pcf8574_lcd_poll /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, pcf8574_lcd_unlink /* unlink */
|
||||
|
||||
@@ -171,6 +171,7 @@ static const struct file_operations tda19988_fops =
|
||||
tda19988_seek, /* seek */
|
||||
tda19988_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
tda19988_poll /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, tda19988_unlink /* unlink */
|
||||
|
||||
Reference in New Issue
Block a user