diff options
| author | [email protected] <[email protected]> | 2012-02-03 14:03:51 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-02-03 14:03:51 +0000 |
| commit | eedd490bd6a161c6b50d143e33d764fc3bc8eddb (patch) | |
| tree | 6f350b21cedbb631937b440f7ef78a10db070fc0 /components/drivers/spi | |
| parent | f756b2584c5766fa9e15fbdbd9ab0a175d5bd656 (diff) | |
add const attribute to the ops.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1937 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/drivers/spi')
| -rw-r--r-- | components/drivers/spi/spi_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/drivers/spi/spi_core.c b/components/drivers/spi/spi_core.c index d4c265da6d..fc9f707979 100644 --- a/components/drivers/spi/spi_core.c +++ b/components/drivers/spi/spi_core.c @@ -3,7 +3,7 @@ extern rt_err_t rt_spi_bus_device_init(struct rt_spi_bus* bus, const char* name);
extern rt_err_t rt_spidev_device_init(struct rt_spi_device* dev, const char* name);
-rt_err_t rt_spi_bus_register(struct rt_spi_bus* bus, const char* name, struct rt_spi_ops* ops)
+rt_err_t rt_spi_bus_register(struct rt_spi_bus* bus, const char* name, const struct rt_spi_ops* ops)
{
rt_err_t result;
|
