projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b787f68
)
spi: rspi: Constify platform_device_id
author
Krzysztof Kozlowski
<k.kozlowski.k@gmail.com>
Fri, 1 May 2015 15:44:05 +0000
(
00:44
+0900)
committer
Mark Brown
<broonie@kernel.org>
Fri, 1 May 2015 16:37:50 +0000
(17:37 +0100)
The platform_device_id is not modified by the driver and core uses it as
const.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rspi.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/spi/spi-rspi.c
b/drivers/spi/spi-rspi.c
index f6bac9e77d067390f29584595b2a219b69e749e4..70a7a7b168fdf7a51a8423c107cbe862bc7e441e 100644
(file)
--- a/
drivers/spi/spi-rspi.c
+++ b/
drivers/spi/spi-rspi.c
@@
-1300,7
+1300,7
@@
error1:
return ret;
}
-static struct platform_device_id spi_driver_ids[] = {
+static
const
struct platform_device_id spi_driver_ids[] = {
{ "rspi", (kernel_ulong_t)&rspi_ops },
{ "rspi-rz", (kernel_ulong_t)&rspi_rz_ops },
{ "qspi", (kernel_ulong_t)&qspi_ops },
This page took
0.025052 seconds
and
5
git commands to generate.