[PATCH 02/11] ARM: PL08x: constify vendor name field
Russell King - ARM Linux
linux at arm.linux.org.uk
Fri Dec 24 05:06:43 EST 2010
It's a string which we should never overwrite. So make it const.
Signed-off-by: Russell King <rmk+kernel at arm.linux.org.uk>
---
drivers/dma/amba-pl08x.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c
index 3da49ed..14c024f 100644
--- a/drivers/dma/amba-pl08x.c
+++ b/drivers/dma/amba-pl08x.c
@@ -89,7 +89,7 @@
* or not.
*/
struct vendor_data {
- char *name;
+ const char *name;
u8 channels;
bool dualmaster;
};
--
1.6.2.5
More information about the linux-arm-kernel
mailing list