Title: [9236] trunk/drivers/spi/spi_bfin5xx.c: bfin_spi: constify transfer ops
- Revision
- 9236
- Author
- vapier
- Date
- 2010-10-17 20:25:37 -0400 (Sun, 17 Oct 2010)
Log Message
bfin_spi: constify transfer ops
Modified Paths
Diff
Modified: trunk/drivers/spi/spi_bfin5xx.c (9235 => 9236)
--- trunk/drivers/spi/spi_bfin5xx.c 2010-10-18 00:24:25 UTC (rev 9235)
+++ trunk/drivers/spi/spi_bfin5xx.c 2010-10-18 00:25:37 UTC (rev 9236)
@@ -105,7 +105,7 @@
u16 flag_reg;
int cs_change;
- struct transfer_ops *ops;
+ const struct transfer_ops *ops;
};
struct slave_data {
@@ -119,7 +119,7 @@
u32 cs_gpio;
u16 idle_tx_val;
u8 pio_interrupt; /* use spi data irq */
- struct transfer_ops *ops;
+ const struct transfer_ops *ops;
};
#define DEFINE_SPI_REG(reg, off) \
@@ -304,7 +304,7 @@
}
}
-static struct transfer_ops bfin_transfer_ops_u8 = {
+static const struct transfer_ops bfin_transfer_ops_u8 = {
.write = bfin_spi_u8_writer,
.read = bfin_spi_u8_reader,
.duplex = bfin_spi_u8_duplex,
@@ -358,7 +358,7 @@
}
}
-static struct transfer_ops bfin_transfer_ops_u16 = {
+static const struct transfer_ops bfin_transfer_ops_u16 = {
.write = bfin_spi_u16_writer,
.read = bfin_spi_u16_reader,
.duplex = bfin_spi_u16_duplex,
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits