diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-06-11 16:32:55 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-06-11 16:32:55 +0000 |
commit | 2c279270c74e1b38ef9b875c4c29b9eb9a3092d9 (patch) | |
tree | 096785b72d829c379892b4187c3dbbdb56824e0c /nuttx/drivers/bch | |
parent | 94a04f9e5a37e615bc7f8809a055ed98ea36a19b (diff) | |
download | px4-nuttx-2c279270c74e1b38ef9b875c4c29b9eb9a3092d9.tar.gz px4-nuttx-2c279270c74e1b38ef9b875c4c29b9eb9a3092d9.tar.bz2 px4-nuttx-2c279270c74e1b38ef9b875c4c29b9eb9a3092d9.zip |
Additional fixes for devkitARM toolchain
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1876 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/bch')
-rw-r--r-- | nuttx/drivers/bch/bch_internal.h | 2 | ||||
-rw-r--r-- | nuttx/drivers/bch/bchdev_driver.c | 4 |
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 */ |