summaryrefslogtreecommitdiff
path: root/nuttx/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/drivers')
-rw-r--r--nuttx/drivers/bch/bch_internal.h2
-rw-r--r--nuttx/drivers/bch/bchdev_driver.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/drivers/bch/bch_internal.h b/nuttx/drivers/bch/bch_internal.h
index cef8a49b8..1a5ba5889 100644
--- a/nuttx/drivers/bch/bch_internal.h
+++ b/nuttx/drivers/bch/bch_internal.h
@@ -81,7 +81,7 @@ extern "C" {
#define EXTERN extern
#endif
-EXTERN struct file_operations bch_fops;
+EXTERN const struct file_operations bch_fops;
/****************************************************************************
* Public Function Prototypes
diff --git a/nuttx/drivers/bch/bchdev_driver.c b/nuttx/drivers/bch/bchdev_driver.c
index 42d9825db..1258fec23 100644
--- a/nuttx/drivers/bch/bchdev_driver.c
+++ b/nuttx/drivers/bch/bchdev_driver.c
@@ -1,7 +1,7 @@
/****************************************************************************
* drivers/bch/bchdev_driver.c
*
- * Copyright (C) 2008 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2008-2009 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -78,7 +78,7 @@ static int bch_ioctl(FAR struct file *filp, int cmd, unsigned long arg);
* Public Data
****************************************************************************/
-static const struct file_operations bch_fops =
+const struct file_operations bch_fops =
{
bch_open, /* open */
bch_close, /* close */