summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulia Lawall <julia.lawall@lip6.fr>2015-11-15 21:36:30 +0100
committerDavid S. Miller <davem@davemloft.net>2016-01-18 14:12:33 -0500
commitb5a608fb28c84ef3e569b6929e58977f4e2ce480 (patch)
tree3d7393a163b6f9b967b99e81dfe9048715108a97
parent0860bf94712f34f5920193004dfed25408f078b1 (diff)
ide: constify ide_dma_ops structures
The ide_dma_ops structures are never modified, so declare these as const, as is already done for the others. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/ide/it821x.c2
-rw-r--r--drivers/ide/trm290.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/it821x.c b/drivers/ide/it821x.c
index f01ba4606be0..04029d18a696 100644
--- a/drivers/ide/it821x.c
+++ b/drivers/ide/it821x.c
@@ -508,7 +508,7 @@ static void it821x_quirkproc(ide_drive_t *drive)
}
-static struct ide_dma_ops it821x_pass_through_dma_ops = {
+static const struct ide_dma_ops it821x_pass_through_dma_ops = {
.dma_host_set = ide_dma_host_set,
.dma_setup = ide_dma_setup,
.dma_start = it821x_dma_start,
diff --git a/drivers/ide/trm290.c b/drivers/ide/trm290.c
index 0069f6ce74cf..d550b379b0f1 100644
--- a/drivers/ide/trm290.c
+++ b/drivers/ide/trm290.c
@@ -314,7 +314,7 @@ static const struct ide_tp_ops trm290_tp_ops = {
.output_data = ide_output_data,
};
-static struct ide_dma_ops trm290_dma_ops = {
+static const struct ide_dma_ops trm290_dma_ops = {
.dma_host_set = trm290_dma_host_set,
.dma_setup = trm290_dma_setup,
.dma_start = trm290_dma_start,
>78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
.deps
.libs
.dirstamp
.project
.pydevproject

*.o
*.a
config.h.in
Makefile.in
*~
.*.swp
*.old
*.log
*.pyc

Makefile
aclocal.m4
autom4te.cache
compile
config.guess
config.h
config.status
config.sub
configure
depcomp
install-sh
libtool
ltmain.sh
missing
stamp-h1
netdata.spec
sha256sums.txt

# netdata binaries
netdata
!netdata/

apps.plugin
!apps.plugin/

freeipmi.plugin
!freeipmi.plugin/

cgroup-network
!cgroup-network/

# netdata makeself archives
*.tar.*
*.run

# netdata makeself downloads
makeself/tmp/

# coverity
cov-int/
netdata-coverity-analysis.tgz
.coverity-token
.coverity-build

.cproject/
.idea/
.vscode/
.project/
.settings/
README
TODO.md
netdata.conf
TODO.txt

web/gui/chart-info/
web/gui/control.html
web/gui/datasource.css
web/gui/gadget.xml
web/gui/index_new.html
web/gui/version.txt

# related to karma/javascript/node
/node_modules/
/coverage/

system/netdata-lsb
system/netdata-openrc
system/netdata-init-d
system/netdata.logrotate
system/netdata.service
system/netdata.plist
system/netdata-freebsd
system/edit-config

health/notifications/alarm-notify.sh
collectors/cgroups.plugin/cgroup-name.sh
collectors/tc.plugin/tc-qos-helper.sh
collectors/charts.d.plugin/charts.d.plugin
collectors/node.d.plugin/node.d.plugin
collectors/python.d.plugin/python.d.plugin
collectors/fping.plugin/fping.plugin

# installer generated files
netdata-uninstaller.sh
netdata-updater.sh

# cmake files
cmake-build-debug/
cmake-build-release/
CMakeCache.txt
CMakeFiles/
cmake_install.cmake

# jetbrains IDE
.jetbrains*

.DS_Store

contrib/debian/changelog

# converted diagrams
diagrams/*.png
diagrams/*.svg
diagrams/*.atxt
diagrams/plantuml.jar

# cppcheck
cppcheck-build/

venv/

# debugging / profiling
makeself/debug/
tests/profile/benchmark-dictionary
tests/profile/benchmark-registry
tests/profile/test-eval
tests/profile/benchmark-line-parsing
tests/profile/benchmark-procfile-parser
tests/profile/benchmark-value-pairs
tests/profile/statsd-stress
oprofile_data/
vgcore.*
callgrind.out.*
gmon.out
gmon.txt
sitespeed-result/

# tests and temp files
python.d/python-modules-installer.sh