summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2011-05-16 18:28:15 +0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-05-18 00:33:39 +0400
commit57517878df4e5769885e80aba895f4e69b1ddbe9 (patch)
tree348372aa2f80ee76fe33b021d40397d56bb01529 /tools/perf/scripts/python
parentcfe3cffd8e44c0b69c9c50a1659acbd32ac19b70 (diff)
downloadlinux-57517878df4e5769885e80aba895f4e69b1ddbe9.tar.xz
staging: comedi: addi-data: Don't overwrite read-only data
The drivers for ADDI-DATA cards can override some static parameters for the board type using information read from EEPROM. Unfortunately, they currently write the parameters from the EEPROM back to the shared, read-only board data! The problem has been masked during compilation by type-casting away the const-ness of the data. This patch changes the code to use an area in the private data for the board instance to hold the parameters read from EEPROM (after initializing the parameters from the static board data). It also changes the type-casts to the read-only data to preserve the const qualifier. Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions